]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/config/services.yml
Add menu access to site credentials CRUD
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / config / services.yml
1 services:
2 wallabag_core.helper.detect_active_theme:
3 class: Wallabag\CoreBundle\Helper\DetectActiveTheme
4 arguments:
5 - "@security.token_storage"
6 - "%wallabag_core.theme%"
7
8 # custom form type
9 wallabag_core.form.type.config:
10 class: Wallabag\CoreBundle\Form\Type\ConfigType
11 arguments:
12 - "%liip_theme.themes%"
13 - "%wallabag_core.languages%"
14 tags:
15 - { name: form.type }
16
17 wallabag_core.filter.type.entry:
18 class: Wallabag\CoreBundle\Form\Type\EntryFilterType
19 arguments:
20 - "@wallabag_core.entry_repository"
21 - "@security.token_storage"
22 tags:
23 - { name: form.type }
24
25 wallabag_core.param_converter.username_rsstoken_converter:
26 class: Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter
27 tags:
28 - { name: request.param_converter, converter: username_rsstoken_converter }
29 arguments:
30 - "@doctrine"
31
32 wallabag_core.subscriber.table_prefix:
33 class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber
34 arguments:
35 - "%database_table_prefix%"
36 tags:
37 - { name: doctrine.event_subscriber }
38
39 wallabag_core.graby:
40 class: Graby\Graby
41 arguments:
42 -
43 error_message: '%wallabag_core.fetching_error_message%'
44 error_message_title: '%wallabag_core.fetching_error_message_title%'
45 - "@wallabag_core.guzzle.http_client"
46 - "@wallabag_core.graby.config_builder"
47 calls:
48 - [ setLogger, [ "@logger" ] ]
49 tags:
50 - { name: monolog.logger, channel: graby }
51
52 wallabag_core.graby.config_builder:
53 class: Graby\SiteConfig\ConfigBuilder
54 arguments:
55 - {}
56 - "@logger"
57
58 wallabag_core.guzzle.http_client:
59 class: GuzzleHttp\ClientInterface
60 factory: ["@wallabag_core.guzzle.http_client_factory", buildHttpClient]
61
62 wallabag_core.guzzle_authenticator.config_builder:
63 class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
64 arguments:
65 - "@wallabag_core.graby.config_builder"
66 - "@security.token_storage"
67 - "@wallabag_core.site_credential_repository"
68 - '@logger'
69 tags:
70 - { name: monolog.logger, channel: graby }
71
72 # service alias override
73 bd_guzzle_site_authenticator.site_config_builder:
74 alias: wallabag_core.guzzle_authenticator.config_builder
75
76 wallabag_core.guzzle.http_client_factory:
77 class: Wallabag\CoreBundle\Helper\HttpClientFactory
78 arguments:
79 - "@wallabag_core.guzzle.cookie_jar"
80 - '@=service(''craue_config'').get(''restricted_access'')'
81 - '@logger'
82 calls:
83 - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
84
85 wallabag_core.guzzle.cookie_jar:
86 class: GuzzleHttp\Cookie\FileCookieJar
87 arguments: ["%kernel.cache_dir%/cookiejar.json"]
88
89 wallabag_core.content_proxy:
90 class: Wallabag\CoreBundle\Helper\ContentProxy
91 arguments:
92 - "@wallabag_core.graby"
93 - "@wallabag_core.rule_based_tagger"
94 - "@validator"
95 - "@logger"
96 - '%wallabag_core.fetching_error_message%'
97
98 wallabag_core.tags_assigner:
99 class: Wallabag\CoreBundle\Helper\TagsAssigner
100 arguments:
101 - "@wallabag_core.tag_repository"
102
103 wallabag_core.rule_based_tagger:
104 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
105 arguments:
106 - "@rulerz"
107 - "@wallabag_core.tag_repository"
108 - "@wallabag_core.entry_repository"
109 - "@logger"
110
111 # repository as a service
112 wallabag_core.entry_repository:
113 class: Wallabag\CoreBundle\Repository\EntryRepository
114 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
115 arguments:
116 - WallabagCoreBundle:Entry
117
118 wallabag_core.tag_repository:
119 class: Wallabag\CoreBundle\Repository\TagRepository
120 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
121 arguments:
122 - WallabagCoreBundle:Tag
123
124 wallabag_core.site_credential_repository:
125 class: Wallabag\CoreBundle\Repository\SiteCredentialRepository
126 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
127 arguments:
128 - WallabagCoreBundle:SiteCredential
129
130 wallabag_core.helper.entries_export:
131 class: Wallabag\CoreBundle\Helper\EntriesExport
132 arguments:
133 - '%domain_name%'
134 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
135
136 wallabag.operator.array.matches:
137 class: Wallabag\CoreBundle\Operator\PHP\Matches
138 tags:
139 - { name: rulerz.operator, target: native, operator: matches }
140
141 wallabag.operator.doctrine.matches:
142 class: Wallabag\CoreBundle\Operator\Doctrine\Matches
143 tags:
144 - { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
145
146 wallabag.operator.array.notmatches:
147 class: Wallabag\CoreBundle\Operator\PHP\NotMatches
148 tags:
149 - { name: rulerz.operator, target: native, operator: notmatches }
150
151 wallabag.operator.doctrine.notmatches:
152 class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches
153 tags:
154 - { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true }
155
156 wallabag_core.helper.redirect:
157 class: Wallabag\CoreBundle\Helper\Redirect
158 arguments:
159 - "@router"
160 - "@security.token_storage"
161
162 wallabag_core.helper.prepare_pager_for_entries:
163 class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
164 arguments:
165 - "@security.token_storage"
166 - "@router"
167
168 wallabag_core.redis.client:
169 class: Predis\Client
170 arguments:
171 -
172 scheme: '%redis_scheme%'
173 host: '%redis_host%'
174 port: '%redis_port%'
175 path: '%redis_path%'
176 password: '%redis_password%'
177
178 wallabag_core.exception_controller:
179 class: Wallabag\CoreBundle\Controller\ExceptionController
180 arguments:
181 - '@twig'
182 - '%kernel.debug%'
183
184 wallabag_core.subscriber.sqlite_cascade_delete:
185 class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
186 arguments:
187 - "@doctrine"
188 tags:
189 - { name: doctrine.event_subscriber }
190
191 wallabag_core.subscriber.download_images:
192 class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
193 arguments:
194 - "@doctrine.orm.default_entity_manager"
195 - "@wallabag_core.entry.download_images"
196 - '@=service(''craue_config'').get(''download_images_enabled'')'
197 - "@logger"
198 tags:
199 - { name: kernel.event_subscriber }
200
201 wallabag_core.entry.download_images:
202 class: Wallabag\CoreBundle\Helper\DownloadImages
203 arguments:
204 - "@wallabag_core.entry.download_images.client"
205 - "%kernel.root_dir%/../web/assets/images"
206 - '%domain_name%'
207 - "@logger"
208
209 wallabag_core.entry.download_images.client:
210 class: GuzzleHttp\Client