Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The priority in document for Drupal\Core\DependencyInjection\Compiler\StackedKernelPass
confused me:
/**
* Provides a compiler pass for stacked HTTP kernels.
*
* Builds the HTTP kernel by collecting all services tagged 'http_middleware'
* and assembling them into a StackedKernel. The middleware with the lowest
* priority ends up as the outermost while the highest priority middleware
* wraps the actual HTTP kernel defined by the http_kernel.basic service.
Proposed resolution
The highest middleware should be outermost while the lowest wraps the http_kernel.basic service;
Comment | File | Size | Author |
---|---|---|---|
#8 | 2869741-8.patch | 1.14 KB | edaa |
#5 | 2869741-5.patch | 1.13 KB | edaa |
#2 | 2869741-1.patch | 1.12 KB | edaa |
Comments
Comment #2
edaa CreditAttribution: edaa commentedComment #3
edaa CreditAttribution: edaa commentedComment #5
edaa CreditAttribution: edaa commentedFIx path
Comment #6
edaa CreditAttribution: edaa commentedComment #8
edaa CreditAttribution: edaa commentedfix file path
Comment #9
dawehnerYou are absolutely right. Nice catch!
Comment #10
alexpottCommitted and pushed 479813c to 8.4.x and 83efd31 to 8.3.x. Thanks!
Backported to 8.3.x because this is a documentation fix.