forked from activelamp/purl-d8
-
Notifications
You must be signed in to change notification settings - Fork 4
/
purl.services.yml
84 lines (70 loc) · 2.45 KB
/
purl.services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
purl.plugin.method_manager:
class: Drupal\purl\Plugin\MethodPluginManager
parent: default_plugin_manager
calls:
- [setContainer, [ '@service_container' ]]
plugin.manager.purl_method_manager:
class: Drupal\purl\Plugin\MethodPluginManager
parent: default_plugin_manager
plugin.manager.purl_provider_manager:
class: Drupal\purl\Plugin\ProviderManager
parent: default_plugin_manager
purl.plugin.provider_manager:
class: Drupal\purl\Plugin\ProviderManager
parent: default_plugin_manager
calls:
- [setContainer, [ '@service_container' ]]
- [setConnection, [ '@database' ]]
purl.modifier_index:
class: Drupal\purl\Plugin\ModifierIndex
purl.request_subscriber:
class: Drupal\purl\Event\RequestSubscriber
arguments:
- '@purl.modifier_index'
- '@purl.matched_modifiers'
- '@module_handler'
tags:
- { name: event_subscriber }
purl.purl_node_context_routes:
class: Drupal\purl\Event\PurlNodeContextRoutes
arguments: ['@entity_type.manager', '@current_route_match', '@purl.matched_modifiers']
tags:
- { name: event_subscriber }
cache_context.purl:
class: Drupal\purl\Cache\Context\PurlCacheContext
tags:
- { name: event_subscriber }
- { name: cache.context }
purl.rebuild_index:
class: Drupal\purl\Event\RebuildIndex
arguments:
- '@purl.modifier_index'
tags:
- { name: event_subscriber }
purl.outbound_path_processor:
class: Drupal\purl\PathProcessor\PurlContextOutboundPathProcessor
arguments:
- '@purl.matched_modifiers'
- '@purl.context_helper'
tags:
- { name: path_processor_outbound, priority: 300 }
purl.outbound_route_processor:
class: Drupal\purl\RouteProcessor\PurlContextOutboundRouteProcessor
arguments:
- '@purl.plugin.method_manager'
tags:
- { name: route_processor_outbound, priority: 300 }
# @TODO: Consider decorating @url_generator.non_bubbling instead.
purl.url_generator:
class: Drupal\purl\Routing\UrlGenerator
arguments: ['@url_generator.non_bubbling', '@purl.matched_modifiers', '@purl.context_helper']
calls:
- [setContext, ['@?router.request_context']]
purl.matched_modifiers:
class: Drupal\purl\MatchedModifiers
purl.menu_link_tree_manipulators:
class: Drupal\purl\Menu\PurlMenuLinkTreeManipulators
arguments: ['@purl.matched_modifiers']
purl.context_helper:
class: Drupal\purl\ContextHelper