-
Notifications
You must be signed in to change notification settings - Fork 4
/
wmcontroller.services.yml
48 lines (39 loc) · 1.82 KB
/
wmcontroller.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
parameters:
wmcontroller.settings:
# The controller responsible for forwarding to bundle-specific controllers
frontcontroller: 'Drupal\wmcontroller\Controller\FrontController'
# Throw a 404 NotFoundHttpException when an entity is not translated
# in the current language. ( /en/node/123 gives 404 if node/123 has no
# en translation )
404_when_not_translated: true
# Routes to never reroute through the front controller
ignore_routes: []
services:
wmcontroller.route_enhancer.inject_front_controller:
class: Drupal\wmcontroller\Enhancer\InjectFrontControllerRouteEnhancer
# This enhancer has to run after route_enhancer.entity
tags: [{ name: route_enhancer, priority: 19 }]
arguments:
- '%wmcontroller.settings%'
wmcontroller.main_entity.subscriber:
class: Drupal\wmcontroller\EventSubscriber\MainEntitySubscriber
arguments:
- '@wmcontroller.main_entity'
tags: [{ name: event_subscriber }]
wmcontroller.wmpage_cache_main_entity.subscriber:
class: Drupal\wmcontroller\EventSubscriber\WmPageCacheMainEntitySubscriber
arguments:
- '@wmcontroller.main_entity'
tags: [{ name: event_subscriber }]
wmcontroller.entity_controller_resolver:
class: Drupal\wmcontroller\Service\EntityControllerResolver
arguments:
- '@plugin.manager.wmcontroller.controller'
wmcontroller.main_entity:
class: Drupal\wmcontroller\Service\MainEntity
wmcontroller.renderer.viewbuilder:
class: Drupal\wmcontroller\EventSubscriber\ViewRendererSubscriber
tags: [{ name: event_subscriber }]
plugin.manager.wmcontroller.controller:
class: Drupal\wmcontroller\ControllerPluginManager
parent: default_plugin_manager