diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventListenersPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventListenersPass.php index 0be2165..d9e8242 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventListenersPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventListenersPass.php @@ -92,8 +92,6 @@ public function process(ContainerBuilder $container) { krsort($event_subscriber_info[$event_name]); } - file_put_contents('/tmp/foo-debug.txt', print_r($event_subscriber_info, TRUE)); - $definition->addArgument($event_subscriber_info); } } diff --git a/core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php index 80f7796..abc156b 100644 --- a/core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php @@ -70,7 +70,7 @@ public function onException(GetResponseForExceptionEvent $event) { * Cookie provider to send all relevant session data to the user. */ public static function getSubscribedEvents() { - $events[KernelEvents::RESPONSE][] = ['onRespond', 0]; + $events[KernelEvents::RESPONSE][] = ['onRespond', -10]; $events[KernelEvents::EXCEPTION][] = ['onException', 75]; return $events; } diff --git a/core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php b/core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php index a8c1159..0a9217a 100644 --- a/core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php +++ b/core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php @@ -86,7 +86,7 @@ public function onException(GetResponseForExceptionEvent $event) { * {@inheritdoc} */ public static function getSubscribedEvents() { - $events[KernelEvents::EXCEPTION][] = array('onException', 75); + $events[KernelEvents::EXCEPTION][] = array('onException', 80); return $events; }