public function onKernelResponse(FilterResponseEvent $event)
    {
        $response = $event->getResponse();
        $request  = $event->getRequest();
        if (!$event->isMasterRequest())
        {
            return;
        }
        if ($request->isXmlHttpRequest())
        {
            return;
        }
        $this->_injectDatatableScript($response, $request);
    }
public function onKernelResponse(FilterResponseEvent $event)
    {
        $response = $event->getResponse();
        $request  = $event->getRequest();
        if (!$event->isMasterRequest())
        {
            return;
        }
        if ($request->isXmlHttpRequest())
        {
            return;
        }
        $this->_injectDatatableScript($response, $request);
    }
public function onKernelResponse ( FilterResponseEvent $ event ) { $ response = $ event -> getResponse ( ) ; $ request = $ event -> getRequest ( ) ; if ( ! $ event -> isMasterRequest ( ) ) { return ; } if ( $ request -> isXmlHttpRequest ( ) ) { return ; } $ this -> _injectDatatableScript ( $ response , $ request ) ; }
On kernel response event

@param FilterResponseEvent $event
@return void|null
On kernel response event