]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/config/services.yml
Merge pull request #2002 from wallabag/feature-display-itemsNumber
[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
bd0f3d32
JB
32 wallabag_core.table_prefix_subscriber:
33 class: Wallabag\CoreBundle\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
JB
42 -
43 error_message: "wallabag can't retrieve contents for this article. Please report this issue to us."
44 http_client:
45 user_agents:
46 'lifehacker.com': 'PHP/5.2'
47 'gawker.com': 'PHP/5.2'
48 'deadspin.com': 'PHP/5.2'
49 'kotaku.com': 'PHP/5.2'
50 'jezebel.com': 'PHP/5.2'
51 'io9.com': 'PHP/5.2'
52 'jalopnik.com': 'PHP/5.2'
53 'gizmodo.com': 'PHP/5.2'
54 '.wikipedia.org': 'Mozilla/5.2'
55 '.fok.nl': 'Googlebot/2.1'
56 'getpocket.com': 'PHP/5.2'
57 'iansommerville.com': 'PHP/5.2'
c929c88f 58 calls:
619cc453 59 - [ setLogger, [ "@logger" ] ]
c929c88f
JB
60 tags:
61 - { name: monolog.logger, channel: graby }
558d9aab
JB
62
63 wallabag_core.content_proxy:
64 class: Wallabag\CoreBundle\Helper\ContentProxy
65 arguments:
619cc453
JB
66 - "@wallabag_core.graby"
67 - "@wallabag_core.rule_based_tagger"
c2656f96 68 - "@wallabag_core.tag_repository"
619cc453 69 - "@logger"
c3510620
KG
70
71 wallabag_core.rule_based_tagger:
72 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
73 arguments:
619cc453
JB
74 - "@rulerz"
75 - "@wallabag_core.tag_repository"
76 - "@wallabag_core.entry_repository"
625acf33 77
5a4bbcc9 78 # repository as a service
625acf33
KG
79 wallabag_core.entry_repository:
80 class: Wallabag\CoreBundle\Repository\EntryRepository
5c895a7f 81 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
625acf33
KG
82 arguments:
83 - WallabagCoreBundle:Entry
b3f4a11a
NL
84 calls:
85 - [ setLifeTime, [ "%wallabag_core.cache_lifetime%" ] ]
c3510620
KG
86
87 wallabag_core.tag_repository:
88 class: Wallabag\CoreBundle\Repository\TagRepository
5c895a7f 89 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
c3510620
KG
90 arguments:
91 - WallabagCoreBundle:Tag
fcb1fba5
NL
92
93 wallabag_core.registration_confirmed:
359b3f43 94 class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener
772d8c4b 95 arguments:
619cc453 96 - "@doctrine.orm.entity_manager"
624a7c6d
NL
97 - "%wallabag_core.theme%"
98 - "%wallabag_core.items_on_page%"
99 - "%wallabag_core.rss_limit%"
100 - "%wallabag_core.language%"
fcb1fba5
NL
101 tags:
102 - { name: kernel.event_subscriber }
add597ba
JB
103
104 wallabag_core.helper.entries_export:
105 class: Wallabag\CoreBundle\Helper\EntriesExport
106 arguments:
63e40f2d 107 - "@craue_config"
30d81a47 108 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
a6e27f74
KG
109
110 wallabag.operator.array.matches:
111 class: Wallabag\CoreBundle\Operator\PHP\Matches
112 tags:
113 - { name: rulerz.operator, executor: rulerz.executor.array, operator: matches }
114
115 wallabag.operator.doctrine.matches:
116 class: Wallabag\CoreBundle\Operator\Doctrine\Matches
117 tags:
118 - { name: rulerz.operator, executor: rulerz.executor.doctrine, operator: matches, inline: true }
af497a64
NL
119
120 wallabag_core.helper.redirect:
121 class: Wallabag\CoreBundle\Helper\Redirect
122 arguments:
123 - "@router"
891456ba
NL
124
125 wallabag_core.helper.prepare_pager_for_entries:
126 class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
127 arguments:
128 - "@security.token_storage"
129 - "@router"