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

        $blockView = $event->getRequest()->attributes->get('ngbmView');
        if (!$blockView instanceof BlockViewInterface) {
            return;
        }

        $this->tagger->tagBlock($event->getResponse(), $blockView->getBlock());
    }
public function onKernelResponse(FilterResponseEvent $event): void
    {
        if (!$event->isMasterRequest()) {
            return;
        }

        $blockView = $event->getRequest()->attributes->get('ngbmView');
        if (!$blockView instanceof BlockViewInterface) {
            return;
        }

        $this->tagger->tagBlock($event->getResponse(), $blockView->getBlock());
    }
public function onKernelResponse ( FilterResponseEvent $ event ) : void { if ( ! $ event -> isMasterRequest ( ) ) { return ; } $ blockView = $ event -> getRequest ( ) -> attributes -> get ( 'ngbmView' ) ; if ( ! $ blockView instanceof BlockViewInterface ) { return ; } $ this -> tagger -> tagBlock ( $ event -> getResponse ( ) , $ blockView -> getBlock ( ) ) ; }
Tags the response with the data for block provided by the event.
Tags the response with the data for block provided by the event .