protected function getRequest()
    {
        if (version_compare(Kernel::VERSION, '2.4', '<=')) {
            return $this->container->get('request');
        }

        return $this->container->get('request_stack')->getMasterRequest();
    }
protected function getRequest()
    {
        if (version_compare(Kernel::VERSION, '2.4', '<=')) {
            return $this->container->get('request');
        }

        return $this->container->get('request_stack')->getMasterRequest();
    }
protected function getRequest ( ) { if ( version_compare ( Kernel :: VERSION , '2.4' , '<=' ) ) { return $ this -> container -> get ( 'request' ) ; } return $ this -> container -> get ( 'request_stack' ) -> getMasterRequest ( ) ; }
Get the master request.

@return Request
Get the master request .