]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/config/services.yml
Merge pull request #1618 from wallabag/v2-readme
[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"
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 16
1d76102a
JB
17 wallabag_core.filter.type.entry:
18 class: Wallabag\CoreBundle\Filter\EntryFilterType
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
bd0f3d32
JB
32 wallabag_core.table_prefix_subscriber:
33 class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber
772d8c4b
JB
34 arguments:
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
JB
41 arguments:
42 - { error_message: false }
c929c88f 43 calls:
619cc453 44 - [ setLogger, [ "@logger" ] ]
c929c88f
JB
45 tags:
46 - { name: monolog.logger, channel: graby }
558d9aab
JB
47
48 wallabag_core.content_proxy:
49 class: Wallabag\CoreBundle\Helper\ContentProxy
50 arguments:
619cc453
JB
51 - "@wallabag_core.graby"
52 - "@wallabag_core.rule_based_tagger"
53 - "@logger"
c3510620
KG
54
55 wallabag_core.rule_based_tagger:
56 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
57 arguments:
619cc453
JB
58 - "@rulerz"
59 - "@wallabag_core.tag_repository"
60 - "@wallabag_core.entry_repository"
625acf33 61
5a4bbcc9 62 # repository as a service
625acf33
KG
63 wallabag_core.entry_repository:
64 class: Wallabag\CoreBundle\Repository\EntryRepository
5c895a7f 65 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
625acf33
KG
66 arguments:
67 - WallabagCoreBundle:Entry
c3510620
KG
68
69 wallabag_core.tag_repository:
70 class: Wallabag\CoreBundle\Repository\TagRepository
5c895a7f 71 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
c3510620
KG
72 arguments:
73 - WallabagCoreBundle:Tag
fcb1fba5
NL
74
75 wallabag_core.registration_confirmed:
359b3f43 76 class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener
772d8c4b 77 arguments:
619cc453 78 - "@doctrine.orm.entity_manager"
772d8c4b
JB
79 - %theme%
80 - %items_on_page%
81 - %rss_limit%
82 - %language%
fcb1fba5
NL
83 tags:
84 - { name: kernel.event_subscriber }
add597ba
JB
85
86 wallabag_core.helper.entries_export:
87 class: Wallabag\CoreBundle\Helper\EntriesExport
88 arguments:
89 - %wallabag_url%
90 - src/Wallabag/CoreBundle/Resources/views/themes/_global/public/img/appicon/apple-touch-icon-152.png
a6e27f74
KG
91
92 wallabag.operator.array.matches:
93 class: Wallabag\CoreBundle\Operator\PHP\Matches
94 tags:
95 - { name: rulerz.operator, executor: rulerz.executor.array, operator: matches }
96
97 wallabag.operator.doctrine.matches:
98 class: Wallabag\CoreBundle\Operator\Doctrine\Matches
99 tags:
100 - { name: rulerz.operator, executor: rulerz.executor.doctrine, operator: matches, inline: true }