]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/config/services.yml
Update RulerZ
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / config / services.yml
CommitLineData
7ffb1e80 1services:
32da2a70
J
2 wallabag_core.helper.detect_active_theme:
3 class: Wallabag\CoreBundle\Helper\DetectActiveTheme
4 arguments:
619cc453 5 - "@security.token_storage"
624a7c6d 6 - "%wallabag_core.theme%"
32da2a70 7
6894d48e 8 # custom form type
32da2a70
J
9 wallabag_core.form.type.config:
10 class: Wallabag\CoreBundle\Form\Type\ConfigType
11 arguments:
624a7c6d
NL
12 - "%liip_theme.themes%"
13 - "%wallabag_core.languages%"
32da2a70 14 tags:
5c895a7f 15 - { name: form.type }
0c83fd59 16
1d76102a 17 wallabag_core.filter.type.entry:
b0b893ea 18 class: Wallabag\CoreBundle\Form\Type\EntryFilterType
1d76102a
JB
19 arguments:
20 - "@wallabag_core.entry_repository"
21 - "@security.token_storage"
22 tags:
23 - { name: form.type }
24
0c83fd59
J
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:
619cc453 30 - "@doctrine"
164bd801 31
ac8cf632 32 wallabag_core.subscriber.table_prefix:
535bfcbe 33 class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber
772d8c4b 34 arguments:
624a7c6d 35 - "%database_table_prefix%"
bd0f3d32
JB
36 tags:
37 - { name: doctrine.event_subscriber }
fad31615
JB
38
39 wallabag_core.graby:
40 class: Graby\Graby
558d9aab 41 arguments:
e71c376d 42 -
2297d60f 43 error_message: '%wallabag_core.fetching_error_message%'
7aab0ecf
BD
44 - "@wallabag_core.guzzle.http_client"
45 - "@wallabag_core.graby.config_builder"
c929c88f 46 calls:
619cc453 47 - [ setLogger, [ "@logger" ] ]
c929c88f
JB
48 tags:
49 - { name: monolog.logger, channel: graby }
558d9aab 50
7aab0ecf
BD
51 wallabag_core.graby.config_builder:
52 class: Graby\SiteConfig\ConfigBuilder
53 arguments:
54 - {}
55 - "@logger"
56
57 wallabag_core.guzzle.http_client:
58 class: GuzzleHttp\ClientInterface
59 factory: ["@wallabag_core.guzzle.http_client_factory", buildHttpClient]
60
61 wallabag_core.guzzle_authenticator.config_builder:
62 class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
63 arguments:
64 - "@wallabag_core.graby.config_builder"
65 - "%sites_credentials%"
66
67 # service alias override
68 bd_guzzle_site_authenticator.site_config_builder:
69 alias: wallabag_core.guzzle_authenticator.config_builder
70
71 wallabag_core.guzzle.http_client_factory:
72 class: Wallabag\CoreBundle\Helper\HttpClientFactory
73 arguments:
74 - "@bd_guzzle_site_authenticator.authenticator_subscriber"
75 - "@wallabag_core.guzzle.cookie_jar"
d64bf795 76 - '@=service(''craue_config'').get(''restricted_access'')'
7aab0ecf
BD
77
78 wallabag_core.guzzle.cookie_jar:
79 class: GuzzleHttp\Cookie\FileCookieJar
80 arguments: ["%kernel.cache_dir%/cookiejar.json"]
81
558d9aab
JB
82 wallabag_core.content_proxy:
83 class: Wallabag\CoreBundle\Helper\ContentProxy
84 arguments:
619cc453
JB
85 - "@wallabag_core.graby"
86 - "@wallabag_core.rule_based_tagger"
c2656f96 87 - "@wallabag_core.tag_repository"
619cc453 88 - "@logger"
29dca432 89 - '%wallabag_core.fetching_error_message%'
c3510620
KG
90
91 wallabag_core.rule_based_tagger:
92 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
93 arguments:
619cc453
JB
94 - "@rulerz"
95 - "@wallabag_core.tag_repository"
96 - "@wallabag_core.entry_repository"
625acf33 97
5a4bbcc9 98 # repository as a service
625acf33
KG
99 wallabag_core.entry_repository:
100 class: Wallabag\CoreBundle\Repository\EntryRepository
5c895a7f 101 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
625acf33
KG
102 arguments:
103 - WallabagCoreBundle:Entry
c3510620
KG
104
105 wallabag_core.tag_repository:
106 class: Wallabag\CoreBundle\Repository\TagRepository
5c895a7f 107 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
c3510620
KG
108 arguments:
109 - WallabagCoreBundle:Tag
fcb1fba5 110
add597ba
JB
111 wallabag_core.helper.entries_export:
112 class: Wallabag\CoreBundle\Helper\EntriesExport
113 arguments:
4b3c983a 114 - '@=service(''craue_config'').get(''wallabag_url'')'
30d81a47 115 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
a6e27f74
KG
116
117 wallabag.operator.array.matches:
118 class: Wallabag\CoreBundle\Operator\PHP\Matches
119 tags:
177c5510 120 - { name: rulerz.operator, target: native, operator: matches }
a6e27f74
KG
121
122 wallabag.operator.doctrine.matches:
123 class: Wallabag\CoreBundle\Operator\Doctrine\Matches
124 tags:
177c5510 125 - { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
af497a64
NL
126
127 wallabag_core.helper.redirect:
128 class: Wallabag\CoreBundle\Helper\Redirect
129 arguments:
130 - "@router"
a42f38d9 131 - "@security.token_storage"
891456ba
NL
132
133 wallabag_core.helper.prepare_pager_for_entries:
134 class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
135 arguments:
136 - "@security.token_storage"
137 - "@router"
b3437d58
JB
138
139 wallabag_core.redis.client:
140 class: Predis\Client
141 arguments:
142 -
6d204f53 143 scheme: '%redis_scheme%'
b3437d58
JB
144 host: '%redis_host%'
145 port: '%redis_port%'
6d204f53 146 path: '%redis_path%'
c1683778 147 password: '%redis_password%'
40e21962
JB
148
149 wallabag_core.exception_controller:
150 class: Wallabag\CoreBundle\Controller\ExceptionController
151 arguments:
152 - '@twig'
153 - '%kernel.debug%'
191564b7
JB
154
155 wallabag_core.subscriber.sqlite_cascade_delete:
535bfcbe 156 class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
191564b7
JB
157 arguments:
158 - "@doctrine"
159 tags:
160 - { name: doctrine.event_subscriber }
7f559418
JB
161
162 wallabag_core.subscriber.download_images:
163 class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
164 arguments:
e0597476 165 - "@doctrine.orm.default_entity_manager"
7f559418 166 - "@wallabag_core.entry.download_images"
e0597476 167 - '@=service(''craue_config'').get(''download_images_enabled'')'
7f559418
JB
168 - "@logger"
169 tags:
e0597476 170 - { name: kernel.event_subscriber }
7f559418
JB
171
172 wallabag_core.entry.download_images:
173 class: Wallabag\CoreBundle\Helper\DownloadImages
174 arguments:
175 - "@wallabag_core.entry.download_images.client"
176 - "%kernel.root_dir%/../web/assets/images"
e0597476 177 - '@=service(''craue_config'').get(''wallabag_url'')'
7f559418
JB
178 - "@logger"
179
180 wallabag_core.entry.download_images.client:
181 class: GuzzleHttp\Client