Skip to content

Instantly share code, notes, and snippets.

@damiankloip
Created April 24, 2014 14:15
Show Gist options
  • Save damiankloip/11256131 to your computer and use it in GitHub Desktop.
Save damiankloip/11256131 to your computer and use it in GitHub Desktop.
diff --git a/core/core.services.yml b/core/core.services.yml
index 9b9c80b..0bea639 100644
--- a/core/core.services.yml
+++ b/core/core.services.yml
@@ -299,6 +299,8 @@ services:
arguments: ['@serialization.phpserialize', '@database', '@lock']
router.request_context:
class: Symfony\Component\Routing\RequestContext
+ calls:
+ - [fromRequest, ['@?request']]
tags:
- { name: persist }
router.admin_context:
@@ -475,7 +477,7 @@ services:
class: Symfony\Component\HttpKernel\EventListener\RouterListener
tags:
- { name: event_subscriber }
- arguments: ['@router', '@router.request_context', NULL, '@request_stack']
+ arguments: ['@router', NULL, NULL, '@request_stack']
content_negotiation:
class: Drupal\Core\ContentNegotiation
view_subscriber:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment