bundles/BlockManagerBundle/EventListener/HttpCache/LayoutResponseListener.php
public function onKernelResponse(FilterResponseEvent $event): void
    {
        if (!$event->isMasterRequest()) {
            return;
        }

        $layoutView = $event->getRequest()->attributes->get(
            $this->isExceptionResponse ?
                'ngbmExceptionLayoutView' :
                'ngbmLayoutView'
        );

        if (!$layoutView instanceof LayoutViewInterface) {
            return;
        }

        $this->tagger->tagLayout($event->getResponse(), $layoutView->getLayout());
    }
public function onKernelResponse(FilterResponseEvent $event): void
    {
        if (!$event->isMasterRequest()) {
            return;
        }

        $layoutView = $event->getRequest()->attributes->get(
            $this->isExceptionResponse ?
                'ngbmExceptionLayoutView' :
                'ngbmLayoutView'
        );

        if (!$layoutView instanceof LayoutViewInterface) {
            return;
        }

        $this->tagger->tagLayout($event->getResponse(), $layoutView->getLayout());
    }
public function onKernelResponse ( FilterResponseEvent $ event ) : void { if ( ! $ event -> isMasterRequest ( ) ) { return ; } $ layoutView = $ event -> getRequest ( ) -> attributes -> get ( $ this -> isExceptionResponse ? 'ngbmExceptionLayoutView' : 'ngbmLayoutView' ) ; if ( ! $ layoutView instanceof LayoutViewInterface ) { return ; } $ this -> tagger -> tagLayout ( $ event -> getResponse ( ) , $ layoutView -> getLayout ( ) ) ; }
Tags the response with the data for layout provided by the event.
Tags the response with the data for layout provided by the event .