]>
Commit | Line | Data |
---|---|---|
7ffb1e80 | 1 | services: |
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%' |
c929c88f | 44 | calls: |
619cc453 | 45 | - [ setLogger, [ "@logger" ] ] |
c929c88f JB |
46 | tags: |
47 | - { name: monolog.logger, channel: graby } | |
558d9aab JB |
48 | |
49 | wallabag_core.content_proxy: | |
50 | class: Wallabag\CoreBundle\Helper\ContentProxy | |
51 | arguments: | |
619cc453 JB |
52 | - "@wallabag_core.graby" |
53 | - "@wallabag_core.rule_based_tagger" | |
c2656f96 | 54 | - "@wallabag_core.tag_repository" |
619cc453 | 55 | - "@logger" |
c3510620 KG |
56 | |
57 | wallabag_core.rule_based_tagger: | |
58 | class: Wallabag\CoreBundle\Helper\RuleBasedTagger | |
59 | arguments: | |
619cc453 JB |
60 | - "@rulerz" |
61 | - "@wallabag_core.tag_repository" | |
62 | - "@wallabag_core.entry_repository" | |
625acf33 | 63 | |
5a4bbcc9 | 64 | # repository as a service |
625acf33 KG |
65 | wallabag_core.entry_repository: |
66 | class: Wallabag\CoreBundle\Repository\EntryRepository | |
5c895a7f | 67 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] |
625acf33 KG |
68 | arguments: |
69 | - WallabagCoreBundle:Entry | |
c3510620 KG |
70 | |
71 | wallabag_core.tag_repository: | |
72 | class: Wallabag\CoreBundle\Repository\TagRepository | |
5c895a7f | 73 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] |
c3510620 KG |
74 | arguments: |
75 | - WallabagCoreBundle:Tag | |
fcb1fba5 | 76 | |
add597ba JB |
77 | wallabag_core.helper.entries_export: |
78 | class: Wallabag\CoreBundle\Helper\EntriesExport | |
79 | arguments: | |
4b3c983a | 80 | - '@=service(''craue_config'').get(''wallabag_url'')' |
30d81a47 | 81 | - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png |
a6e27f74 KG |
82 | |
83 | wallabag.operator.array.matches: | |
84 | class: Wallabag\CoreBundle\Operator\PHP\Matches | |
85 | tags: | |
86 | - { name: rulerz.operator, executor: rulerz.executor.array, operator: matches } | |
87 | ||
88 | wallabag.operator.doctrine.matches: | |
89 | class: Wallabag\CoreBundle\Operator\Doctrine\Matches | |
90 | tags: | |
91 | - { name: rulerz.operator, executor: rulerz.executor.doctrine, operator: matches, inline: true } | |
af497a64 NL |
92 | |
93 | wallabag_core.helper.redirect: | |
94 | class: Wallabag\CoreBundle\Helper\Redirect | |
95 | arguments: | |
96 | - "@router" | |
a42f38d9 | 97 | - "@security.token_storage" |
891456ba NL |
98 | |
99 | wallabag_core.helper.prepare_pager_for_entries: | |
100 | class: Wallabag\CoreBundle\Helper\PreparePagerForEntries | |
101 | arguments: | |
102 | - "@security.token_storage" | |
103 | - "@router" | |
b3437d58 JB |
104 | |
105 | wallabag_core.redis.client: | |
106 | class: Predis\Client | |
107 | arguments: | |
108 | - | |
6d204f53 | 109 | scheme: '%redis_scheme%' |
b3437d58 JB |
110 | host: '%redis_host%' |
111 | port: '%redis_port%' | |
6d204f53 | 112 | path: '%redis_path%' |
40e21962 JB |
113 | |
114 | wallabag_core.exception_controller: | |
115 | class: Wallabag\CoreBundle\Controller\ExceptionController | |
116 | arguments: | |
117 | - '@twig' | |
118 | - '%kernel.debug%' | |
191564b7 JB |
119 | |
120 | wallabag_core.subscriber.sqlite_cascade_delete: | |
535bfcbe | 121 | class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber |
191564b7 JB |
122 | arguments: |
123 | - "@doctrine" | |
124 | tags: | |
125 | - { name: doctrine.event_subscriber } | |
7f559418 JB |
126 | |
127 | wallabag_core.subscriber.download_images: | |
128 | class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber | |
129 | arguments: | |
e0597476 | 130 | - "@doctrine.orm.default_entity_manager" |
7f559418 | 131 | - "@wallabag_core.entry.download_images" |
e0597476 | 132 | - '@=service(''craue_config'').get(''download_images_enabled'')' |
7f559418 JB |
133 | - "@logger" |
134 | tags: | |
e0597476 | 135 | - { name: kernel.event_subscriber } |
7f559418 JB |
136 | |
137 | wallabag_core.entry.download_images: | |
138 | class: Wallabag\CoreBundle\Helper\DownloadImages | |
139 | arguments: | |
140 | - "@wallabag_core.entry.download_images.client" | |
141 | - "%kernel.root_dir%/../web/assets/images" | |
e0597476 | 142 | - '@=service(''craue_config'').get(''wallabag_url'')' |
7f559418 JB |
143 | - "@logger" |
144 | ||
145 | wallabag_core.entry.download_images.client: | |
146 | class: GuzzleHttp\Client |