diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/StackedKernelPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/StackedKernelPass.php index e5edb51..56c563a 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/StackedKernelPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/StackedKernelPass.php @@ -40,7 +40,7 @@ public function process(ContainerBuilder $container) { $container->addAliases(array('http_kernel_stack' => 'http_kernel')); } else { - array_multisort($priorities, SORT_DESC, $middlewares, SORT_DESC); + array_multisort($priorities, SORT_ASC, $middlewares); $previous_id = 'http_kernel'; $first = $http_kernel = $container->getDefinition('http_kernel');