class: Wallabag\CoreBundle\Helper\DetectActiveTheme
arguments:
- "@security.token_storage"
- - %wallabag_core.theme%
+ - "%wallabag_core.theme%"
# custom form type
wallabag_core.form.type.config:
class: Wallabag\CoreBundle\Form\Type\ConfigType
arguments:
- - %liip_theme.themes%
- - %wallabag_core.languages%
+ - "%liip_theme.themes%"
+ - "%wallabag_core.languages%"
tags:
- { name: form.type }
arguments:
- "@doctrine"
- wallabag_core.table_prefix_subscriber:
- class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber
+ wallabag_core.subscriber.table_prefix:
+ class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber
arguments:
- - %database_table_prefix%
+ - "%database_table_prefix%"
tags:
- { name: doctrine.event_subscriber }
wallabag_core.graby:
class: Graby\Graby
arguments:
- - { error_message: "wallabag can't retrieve contents for this article. Please contact us if problem persists." }
+ -
+ error_message: '%wallabag_core.fetching_error_message%'
+ http_client:
+ user_agents:
+ 'lifehacker.com': 'PHP/5.2'
+ 'gawker.com': 'PHP/5.2'
+ 'deadspin.com': 'PHP/5.2'
+ 'kotaku.com': 'PHP/5.2'
+ 'jezebel.com': 'PHP/5.2'
+ 'io9.com': 'PHP/5.2'
+ 'jalopnik.com': 'PHP/5.2'
+ 'gizmodo.com': 'PHP/5.2'
+ '.wikipedia.org': 'Mozilla/5.2'
+ '.fok.nl': 'Googlebot/2.1'
+ 'getpocket.com': 'PHP/5.2'
+ 'iansommerville.com': 'PHP/5.2'
calls:
- [ setLogger, [ "@logger" ] ]
tags:
arguments:
- WallabagCoreBundle:Tag
- wallabag_core.registration_confirmed:
- class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener
- arguments:
- - "@doctrine.orm.entity_manager"
- - %wallabag_core.theme%
- - %wallabag_core.items_on_page%
- - %wallabag_core.rss_limit%
- - %wallabag_core.language%
- tags:
- - { name: kernel.event_subscriber }
-
wallabag_core.helper.entries_export:
class: Wallabag\CoreBundle\Helper\EntriesExport
arguments:
class: Wallabag\CoreBundle\Operator\Doctrine\Matches
tags:
- { name: rulerz.operator, executor: rulerz.executor.doctrine, operator: matches, inline: true }
+
+ wallabag_core.helper.redirect:
+ class: Wallabag\CoreBundle\Helper\Redirect
+ arguments:
+ - "@router"
+
+ wallabag_core.helper.prepare_pager_for_entries:
+ class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
+ arguments:
+ - "@security.token_storage"
+ - "@router"
+
+ wallabag_core.redis.client:
+ class: Predis\Client
+ arguments:
+ -
+ scheme: '%redis_scheme%'
+ host: '%redis_host%'
+ port: '%redis_port%'
+ path: '%redis_path%'
+
+ wallabag_core.exception_controller:
+ class: Wallabag\CoreBundle\Controller\ExceptionController
+ arguments:
+ - '@twig'
+ - '%kernel.debug%'
+
+ wallabag_core.subscriber.sqlite_cascade_delete:
+ class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
+ arguments:
+ - "@doctrine"
+ tags:
+ - { name: doctrine.event_subscriber }
+
+ wallabag_core.subscriber.download_images:
+ class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
+ arguments:
+ - "@doctrine.orm.default_entity_manager"
+ - "@wallabag_core.entry.download_images"
+ - '@=service(''craue_config'').get(''download_images_enabled'')'
+ - "@logger"
+ tags:
+ - { name: kernel.event_subscriber }
+
+ wallabag_core.entry.download_images:
+ class: Wallabag\CoreBundle\Helper\DownloadImages
+ arguments:
+ - "@wallabag_core.entry.download_images.client"
+ - "%kernel.root_dir%/../web/assets/images"
+ - '@=service(''craue_config'').get(''wallabag_url'')'
+ - "@logger"
+
+ wallabag_core.entry.download_images.client:
+ class: GuzzleHttp\Client