protected function checkXmlHttpRequest()
    {
        if (false === $this->container->get('request_stack')->getCurrentRequest()->isXmlHttpRequest() && false === $this->isDebug()) {
            $this->accessDenied();
        }
    }
protected function checkXmlHttpRequest()
    {
        if (false === $this->container->get('request_stack')->getCurrentRequest()->isXmlHttpRequest() && false === $this->isDebug()) {
            $this->accessDenied();
        }
    }
protected function checkXmlHttpRequest ( ) { if ( false === $ this -> container -> get ( 'request_stack' ) -> getCurrentRequest ( ) -> isXmlHttpRequest ( ) && false === $ this -> isDebug ( ) ) { $ this -> accessDenied ( ) ; } }
check if the current http request is a XmlHttpRequest.

If not, send a
check if the current http request is a XmlHttpRequest .