]>
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" |
495aecfe | 6 | - %theme% # default theme from parameters.yml |
32da2a70 | 7 | |
6894d48e | 8 | # custom form type |
32da2a70 J |
9 | wallabag_core.form.type.config: |
10 | class: Wallabag\CoreBundle\Form\Type\ConfigType | |
11 | arguments: | |
12 | - %liip_theme.themes% | |
c89d35e8 | 13 | - %wallabag_core.languages% |
32da2a70 | 14 | tags: |
5c895a7f | 15 | - { name: form.type } |
0c83fd59 J |
16 | |
17 | wallabag_core.param_converter.username_rsstoken_converter: | |
18 | class: Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter | |
19 | tags: | |
20 | - { name: request.param_converter, converter: username_rsstoken_converter } | |
21 | arguments: | |
619cc453 | 22 | - "@doctrine" |
164bd801 | 23 | |
bd0f3d32 JB |
24 | wallabag_core.table_prefix_subscriber: |
25 | class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber | |
772d8c4b JB |
26 | arguments: |
27 | - %database_table_prefix% | |
bd0f3d32 JB |
28 | tags: |
29 | - { name: doctrine.event_subscriber } | |
fad31615 JB |
30 | |
31 | wallabag_core.graby: | |
32 | class: Graby\Graby | |
558d9aab JB |
33 | arguments: |
34 | - { error_message: false } | |
c929c88f | 35 | calls: |
619cc453 | 36 | - [ setLogger, [ "@logger" ] ] |
c929c88f JB |
37 | tags: |
38 | - { name: monolog.logger, channel: graby } | |
558d9aab JB |
39 | |
40 | wallabag_core.content_proxy: | |
41 | class: Wallabag\CoreBundle\Helper\ContentProxy | |
42 | arguments: | |
619cc453 JB |
43 | - "@wallabag_core.graby" |
44 | - "@wallabag_core.rule_based_tagger" | |
45 | - "@logger" | |
c3510620 KG |
46 | |
47 | wallabag_core.rule_based_tagger: | |
48 | class: Wallabag\CoreBundle\Helper\RuleBasedTagger | |
49 | arguments: | |
619cc453 JB |
50 | - "@rulerz" |
51 | - "@wallabag_core.tag_repository" | |
52 | - "@wallabag_core.entry_repository" | |
625acf33 | 53 | |
5a4bbcc9 | 54 | # repository as a service |
625acf33 KG |
55 | wallabag_core.entry_repository: |
56 | class: Wallabag\CoreBundle\Repository\EntryRepository | |
5c895a7f | 57 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] |
625acf33 KG |
58 | arguments: |
59 | - WallabagCoreBundle:Entry | |
c3510620 KG |
60 | |
61 | wallabag_core.tag_repository: | |
62 | class: Wallabag\CoreBundle\Repository\TagRepository | |
5c895a7f | 63 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] |
c3510620 KG |
64 | arguments: |
65 | - WallabagCoreBundle:Tag | |
fcb1fba5 NL |
66 | |
67 | wallabag_core.registration_confirmed: | |
359b3f43 | 68 | class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener |
772d8c4b | 69 | arguments: |
619cc453 | 70 | - "@doctrine.orm.entity_manager" |
772d8c4b JB |
71 | - %theme% |
72 | - %items_on_page% | |
73 | - %rss_limit% | |
74 | - %language% | |
fcb1fba5 NL |
75 | tags: |
76 | - { name: kernel.event_subscriber } | |
add597ba JB |
77 | |
78 | wallabag_core.helper.entries_export: | |
79 | class: Wallabag\CoreBundle\Helper\EntriesExport | |
80 | arguments: | |
81 | - %wallabag_url% | |
82 | - src/Wallabag/CoreBundle/Resources/views/themes/_global/public/img/appicon/apple-touch-icon-152.png | |
a6e27f74 KG |
83 | |
84 | wallabag.operator.array.matches: | |
85 | class: Wallabag\CoreBundle\Operator\PHP\Matches | |
86 | tags: | |
87 | - { name: rulerz.operator, executor: rulerz.executor.array, operator: matches } | |
88 | ||
89 | wallabag.operator.doctrine.matches: | |
90 | class: Wallabag\CoreBundle\Operator\Doctrine\Matches | |
91 | tags: | |
92 | - { name: rulerz.operator, executor: rulerz.executor.doctrine, operator: matches, inline: true } |