aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/config/services.yml
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/config/services.yml')
-rw-r--r--src/Wallabag/CoreBundle/Resources/config/services.yml29
1 files changed, 25 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml
index 51d6ab47..4be79547 100644
--- a/src/Wallabag/CoreBundle/Resources/config/services.yml
+++ b/src/Wallabag/CoreBundle/Resources/config/services.yml
@@ -41,6 +41,7 @@ services:
41 arguments: 41 arguments:
42 - 42 -
43 error_message: '%wallabag_core.fetching_error_message%' 43 error_message: '%wallabag_core.fetching_error_message%'
44 error_message_title: '%wallabag_core.fetching_error_message_title%'
44 - "@wallabag_core.guzzle.http_client" 45 - "@wallabag_core.guzzle.http_client"
45 - "@wallabag_core.graby.config_builder" 46 - "@wallabag_core.graby.config_builder"
46 calls: 47 calls:
@@ -63,6 +64,9 @@ services:
63 arguments: 64 arguments:
64 - "@wallabag_core.graby.config_builder" 65 - "@wallabag_core.graby.config_builder"
65 - "%sites_credentials%" 66 - "%sites_credentials%"
67 - '@logger'
68 tags:
69 - { name: monolog.logger, channel: graby }
66 70
67 # service alias override 71 # service alias override
68 bd_guzzle_site_authenticator.site_config_builder: 72 bd_guzzle_site_authenticator.site_config_builder:
@@ -71,10 +75,11 @@ services:
71 wallabag_core.guzzle.http_client_factory: 75 wallabag_core.guzzle.http_client_factory:
72 class: Wallabag\CoreBundle\Helper\HttpClientFactory 76 class: Wallabag\CoreBundle\Helper\HttpClientFactory
73 arguments: 77 arguments:
74 - "@bd_guzzle_site_authenticator.authenticator_subscriber"
75 - "@wallabag_core.guzzle.cookie_jar" 78 - "@wallabag_core.guzzle.cookie_jar"
76 - '@=service(''craue_config'').get(''restricted_access'')' 79 - '@=service(''craue_config'').get(''restricted_access'')'
77 - '@logger' 80 - '@logger'
81 calls:
82 - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
78 83
79 wallabag_core.guzzle.cookie_jar: 84 wallabag_core.guzzle.cookie_jar:
80 class: GuzzleHttp\Cookie\FileCookieJar 85 class: GuzzleHttp\Cookie\FileCookieJar
@@ -85,16 +90,22 @@ services:
85 arguments: 90 arguments:
86 - "@wallabag_core.graby" 91 - "@wallabag_core.graby"
87 - "@wallabag_core.rule_based_tagger" 92 - "@wallabag_core.rule_based_tagger"
88 - "@wallabag_core.tag_repository" 93 - "@validator"
89 - "@logger" 94 - "@logger"
90 - '%wallabag_core.fetching_error_message%' 95 - '%wallabag_core.fetching_error_message%'
91 96
97 wallabag_core.tags_assigner:
98 class: Wallabag\CoreBundle\Helper\TagsAssigner
99 arguments:
100 - "@wallabag_core.tag_repository"
101
92 wallabag_core.rule_based_tagger: 102 wallabag_core.rule_based_tagger:
93 class: Wallabag\CoreBundle\Helper\RuleBasedTagger 103 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
94 arguments: 104 arguments:
95 - "@rulerz" 105 - "@rulerz"
96 - "@wallabag_core.tag_repository" 106 - "@wallabag_core.tag_repository"
97 - "@wallabag_core.entry_repository" 107 - "@wallabag_core.entry_repository"
108 - "@logger"
98 109
99 # repository as a service 110 # repository as a service
100 wallabag_core.entry_repository: 111 wallabag_core.entry_repository:
@@ -112,7 +123,7 @@ services:
112 wallabag_core.helper.entries_export: 123 wallabag_core.helper.entries_export:
113 class: Wallabag\CoreBundle\Helper\EntriesExport 124 class: Wallabag\CoreBundle\Helper\EntriesExport
114 arguments: 125 arguments:
115 - '@=service(''craue_config'').get(''wallabag_url'')' 126 - '%domain_name%'
116 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png 127 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
117 128
118 wallabag.operator.array.matches: 129 wallabag.operator.array.matches:
@@ -125,6 +136,16 @@ services:
125 tags: 136 tags:
126 - { name: rulerz.operator, target: doctrine, operator: matches, inline: true } 137 - { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
127 138
139 wallabag.operator.array.notmatches:
140 class: Wallabag\CoreBundle\Operator\PHP\NotMatches
141 tags:
142 - { name: rulerz.operator, target: native, operator: notmatches }
143
144 wallabag.operator.doctrine.notmatches:
145 class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches
146 tags:
147 - { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true }
148
128 wallabag_core.helper.redirect: 149 wallabag_core.helper.redirect:
129 class: Wallabag\CoreBundle\Helper\Redirect 150 class: Wallabag\CoreBundle\Helper\Redirect
130 arguments: 151 arguments:
@@ -175,7 +196,7 @@ services:
175 arguments: 196 arguments:
176 - "@wallabag_core.entry.download_images.client" 197 - "@wallabag_core.entry.download_images.client"
177 - "%kernel.root_dir%/../web/assets/images" 198 - "%kernel.root_dir%/../web/assets/images"
178 - '@=service(''craue_config'').get(''wallabag_url'')' 199 - '%domain_name%'
179 - "@logger" 200 - "@logger"
180 201
181 wallabag_core.entry.download_images.client: 202 wallabag_core.entry.download_images.client: