-
Notifications
You must be signed in to change notification settings - Fork 1
/
controller_annotations.services.yml
90 lines (76 loc) · 3.21 KB
/
controller_annotations.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
85
86
87
88
89
90
services:
# annotations
controller_annotations.Doctrine\Common\Annotations\AnnotationReader:
class: Doctrine\Common\Annotations\AnnotationReader
calls:
- [addGlobalIgnoredName, ['endlink']]
public: false
controller_annotations.Symfony\Component\Config\FileLocator:
class: Symfony\Component\Config\FileLocator
public: false
controller_annotations.Symfony\Component\Routing\Loader\AnnotationDirectoryLoader:
class: Symfony\Component\Routing\Loader\AnnotationDirectoryLoader
arguments:
- '@controller_annotations.Symfony\Component\Config\FileLocator'
- '@Drupal\controller_annotations\Routing\AnnotatedRouteControllerLoader'
public: false
Drupal\controller_annotations\Routing\AnnotatedRouteControllerLoader:
arguments:
- '@controller_annotations.Doctrine\Common\Annotations\CachedReader'
public: false
# cache
controller_annotations.Doctrine\Common\Annotations\CachedReader:
class: Doctrine\Common\Annotations\CachedReader
arguments:
- '@controller_annotations.Doctrine\Common\Annotations\AnnotationReader'
- '@Drupal\controller_annotations\Cache\DrupalCache'
public: false
Drupal\controller_annotations\Cache\DrupalCache:
arguments:
- '@cache.default'
calls:
- [setNamespace, ['controller_annotations']]
public: false
# templating
Drupal\controller_annotations\Templating\TemplateResolver:
public: false
# param converter
Drupal\controller_annotations\Request\ParamConverter\ParamConverterManager:
tags:
- { name: service_collector, tag: controller_annotations.param_converter, call: add }
public: false
Drupal\controller_annotations\Request\ParamConverter\DateTimeParamConverter:
tags:
- { name: controller_annotations.param_converter, priority: 0 }
public: false
Drupal\controller_annotations\Request\ParamConverter\EntityParamConverter:
arguments:
- '@entity_type.manager'
tags:
- { name: controller_annotations.param_converter, priority: 10 }
public: false
# event subscribers
Drupal\controller_annotations\EventSubscriber\ControllerEventSubscriber:
arguments:
- '@controller_annotations.Doctrine\Common\Annotations\CachedReader'
tags:
- { name: event_subscriber }
Drupal\controller_annotations\EventSubscriber\HttpCacheEventSubscriber:
tags:
- { name: event_subscriber }
Drupal\controller_annotations\EventSubscriber\RouteEventSubscriber:
arguments:
- '@controller_annotations.Symfony\Component\Routing\Loader\AnnotationDirectoryLoader'
- '@app.root'
tags:
- { name: event_subscriber }
Drupal\controller_annotations\EventSubscriber\TemplateEventSubscriber:
autowire: true
arguments:
$twig: '@twig'
tags:
- { name: event_subscriber }
Drupal\controller_annotations\EventSubscriber\ParamConverterEventSubscriber:
autowire: true
tags:
- { name: event_subscriber }