]>
Commit | Line | Data |
---|---|---|
1 | services: | |
2 | wallabag_core.helper.detect_active_theme: | |
3 | class: Wallabag\CoreBundle\Helper\DetectActiveTheme | |
4 | arguments: | |
5 | - "@security.token_storage" | |
6 | - "%wallabag_core.theme%" | |
7 | ||
8 | # custom form type | |
9 | wallabag_core.form.type.config: | |
10 | class: Wallabag\CoreBundle\Form\Type\ConfigType | |
11 | arguments: | |
12 | - "%liip_theme.themes%" | |
13 | - "%wallabag_core.languages%" | |
14 | tags: | |
15 | - { name: form.type } | |
16 | ||
17 | wallabag_core.filter.type.entry: | |
18 | class: Wallabag\CoreBundle\Form\Type\EntryFilterType | |
19 | arguments: | |
20 | - "@wallabag_core.entry_repository" | |
21 | - "@security.token_storage" | |
22 | tags: | |
23 | - { name: form.type } | |
24 | ||
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: | |
30 | - "@doctrine" | |
31 | ||
32 | wallabag_core.table_prefix_subscriber: | |
33 | class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber | |
34 | arguments: | |
35 | - "%database_table_prefix%" | |
36 | tags: | |
37 | - { name: doctrine.event_subscriber } | |
38 | ||
39 | wallabag_core.graby: | |
40 | class: Graby\Graby | |
41 | arguments: | |
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' | |
58 | calls: | |
59 | - [ setLogger, [ "@logger" ] ] | |
60 | tags: | |
61 | - { name: monolog.logger, channel: graby } | |
62 | ||
63 | wallabag_core.content_proxy: | |
64 | class: Wallabag\CoreBundle\Helper\ContentProxy | |
65 | arguments: | |
66 | - "@wallabag_core.graby" | |
67 | - "@wallabag_core.rule_based_tagger" | |
68 | - "@wallabag_core.tag_repository" | |
69 | - "@logger" | |
70 | ||
71 | wallabag_core.rule_based_tagger: | |
72 | class: Wallabag\CoreBundle\Helper\RuleBasedTagger | |
73 | arguments: | |
74 | - "@rulerz" | |
75 | - "@wallabag_core.tag_repository" | |
76 | - "@wallabag_core.entry_repository" | |
77 | ||
78 | # repository as a service | |
79 | wallabag_core.entry_repository: | |
80 | class: Wallabag\CoreBundle\Repository\EntryRepository | |
81 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | |
82 | arguments: | |
83 | - WallabagCoreBundle:Entry | |
84 | ||
85 | wallabag_core.tag_repository: | |
86 | class: Wallabag\CoreBundle\Repository\TagRepository | |
87 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | |
88 | arguments: | |
89 | - WallabagCoreBundle:Tag | |
90 | ||
91 | wallabag_core.registration_confirmed: | |
92 | class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener | |
93 | arguments: | |
94 | - "@doctrine.orm.entity_manager" | |
95 | - "%wallabag_core.theme%" | |
96 | - "%wallabag_core.items_on_page%" | |
97 | - "%wallabag_core.rss_limit%" | |
98 | - "%wallabag_core.language%" | |
99 | tags: | |
100 | - { name: kernel.event_subscriber } | |
101 | ||
102 | wallabag_core.helper.entries_export: | |
103 | class: Wallabag\CoreBundle\Helper\EntriesExport | |
104 | arguments: | |
105 | - "@craue_config" | |
106 | - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png | |
107 | ||
108 | wallabag.operator.array.matches: | |
109 | class: Wallabag\CoreBundle\Operator\PHP\Matches | |
110 | tags: | |
111 | - { name: rulerz.operator, executor: rulerz.executor.array, operator: matches } | |
112 | ||
113 | wallabag.operator.doctrine.matches: | |
114 | class: Wallabag\CoreBundle\Operator\Doctrine\Matches | |
115 | tags: | |
116 | - { name: rulerz.operator, executor: rulerz.executor.doctrine, operator: matches, inline: true } | |
117 | ||
118 | wallabag_core.helper.redirect: | |
119 | class: Wallabag\CoreBundle\Helper\Redirect | |
120 | arguments: | |
121 | - "@router" | |
122 | ||
123 | wallabag_core.helper.prepare_pager_for_entries: | |
124 | class: Wallabag\CoreBundle\Helper\PreparePagerForEntries | |
125 | arguments: | |
126 | - "@security.token_storage" | |
127 | - "@router" |