Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Caches HTML responses, request and response policies allowing.
|
||||
* Caches responses for all users, handling dynamic content correctly.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
|
|
|
@ -82,7 +82,7 @@ class DynamicPageCacheSubscriber implements EventSubscriberInterface {
|
|||
// may be returning a domain object that a KernelEvents::VIEW subscriber
|
||||
// must turn into an actual response, but perhaps a format is being
|
||||
// requested that the subscriber does not support.
|
||||
// @see \Drupal\Core\EventSubscriber\AcceptNegotiation406::onViewDetect406()
|
||||
// @see \Drupal\Core\EventSubscriber\RenderArrayNonHtmlSubscriber::onResponse()
|
||||
'request_format',
|
||||
],
|
||||
'bin' => 'dynamic_page_cache',
|
||||
|
@ -122,7 +122,7 @@ class DynamicPageCacheSubscriber implements EventSubscriberInterface {
|
|||
* @param \Symfony\Component\HttpKernel\Event\GetResponseEvent $event
|
||||
* The event to process.
|
||||
*/
|
||||
public function onRouteMatch(GetResponseEvent $event) {
|
||||
public function onRequest(GetResponseEvent $event) {
|
||||
// Don't cache the response if the Dynamic Page Cache request policies are
|
||||
// not met. Store the result in a static keyed by current request, so that
|
||||
// onResponse() does not have to redo the request policy check.
|
||||
|
@ -189,7 +189,7 @@ class DynamicPageCacheSubscriber implements EventSubscriberInterface {
|
|||
|
||||
// Don't cache the response if the Dynamic Page Cache request & response
|
||||
// policies are not met.
|
||||
// @see onRouteMatch()
|
||||
// @see onRequest()
|
||||
if ($this->requestPolicyResults[$request] === RequestPolicyInterface::DENY || $this->responsePolicy->check($response, $request) === ResponsePolicyInterface::DENY) {
|
||||
return;
|
||||
}
|
||||
|
@ -312,7 +312,7 @@ class DynamicPageCacheSubscriber implements EventSubscriberInterface {
|
|||
// should not be polluted by maintenance mode-specific behavior; priority
|
||||
// 30), but before ContentControllerSubscriber (updates _controller, but
|
||||
// that is a no-op when Dynamic Page Cache runs; priority 25).
|
||||
$events[KernelEvents::REQUEST][] = ['onRouteMatch', 27];
|
||||
$events[KernelEvents::REQUEST][] = ['onRequest', 27];
|
||||
|
||||
// Run before HtmlResponseSubscriber::onRespond(), which has priority 0.
|
||||
$events[KernelEvents::RESPONSE][] = ['onResponse', 100];
|
||||
|
|
Reference in a new issue