core/lib/Drupal/Core/Render/CacheableStreamedResponseInterface.php | 3 ++- core/modules/page_cache/src/StackMiddleware/PageCache.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Render/CacheableStreamedResponseInterface.php b/core/lib/Drupal/Core/Render/CacheableStreamedResponseInterface.php index d521d52..93fc0da 100644 --- a/core/lib/Drupal/Core/Render/CacheableStreamedResponseInterface.php +++ b/core/lib/Drupal/Core/Render/CacheableStreamedResponseInterface.php @@ -9,6 +9,8 @@ * @todo Make public once code/modules other than BigPipe start using this. * @todo https://www.drupal.org/node/2577631 will introduce * StreamedResponseInterface, consider making this interface extend that one. + * We also want to reserve the possibility to change the method on this + * interface. */ interface CacheableStreamedResponseInterface { @@ -18,7 +20,6 @@ * The returned response has had the RESPONSE event dispatched for it. * * @see \Symfony\Component\HttpKernel\KernelEvents::RESPONSE - * @see \Drupal\Core\Render\CacheableStreamedResponseEventDispatcherTrait * * @return FALSE|\Drupal\Core\Cache\CacheableResponseInterface */ diff --git a/core/modules/page_cache/src/StackMiddleware/PageCache.php b/core/modules/page_cache/src/StackMiddleware/PageCache.php index c8b1fcf..7c3432c 100644 --- a/core/modules/page_cache/src/StackMiddleware/PageCache.php +++ b/core/modules/page_cache/src/StackMiddleware/PageCache.php @@ -229,7 +229,7 @@ protected function fetch(Request $request, $type = self::MASTER_REQUEST, $catch // The storing of cacheable streamed responses is deferred to terminate(). // The 'X-Drupal-Cache' header must be set here however, since the response // is already sent to the client before terminate() is called. - // @see ::terminate() + // @see static::terminate() if ($response instanceof CacheableStreamedResponseInterface) { // Mark streamed response as a cache miss, but only if caching is allowed // for this streamed response.