Update Composer, update everything

This commit is contained in:
Oliver Davies 2018-11-23 12:29:20 +00:00
parent ea3e94409f
commit dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions

View file

@ -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;

View file

@ -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];