- "@doctrine"
wallabag_core.subscriber.table_prefix:
- class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber
+ class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber
arguments:
- "%database_table_prefix%"
tags:
class: Graby\Graby
arguments:
-
- error_message: "wallabag can't retrieve contents for this article. Please report this issue to us."
- 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'
+ error_message: '%wallabag_core.fetching_error_message%'
calls:
- [ setLogger, [ "@logger" ] ]
tags:
wallabag_core.helper.entries_export:
class: Wallabag\CoreBundle\Helper\EntriesExport
arguments:
- - "@craue_config"
+ - '@=service(''craue_config'').get(''wallabag_url'')'
- src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
wallabag.operator.array.matches:
class: Wallabag\CoreBundle\Helper\Redirect
arguments:
- "@router"
+ - "@security.token_storage"
wallabag_core.helper.prepare_pager_for_entries:
class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
host: '%redis_host%'
port: '%redis_port%'
path: '%redis_path%'
+ password: '%redis_password%'
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