public function getRequest()
    {

        $request = null;

        if ($this->container) {
            $request = $this->container->get('kernel')->getRequest();
        }

        return($request);
    }
public function getRequest()
    {

        $request = null;

        if ($this->container) {
            $request = $this->container->get('kernel')->getRequest();
        }

        return($request);
    }
public function getRequest ( ) { $ request = null ; if ( $ this -> container ) { $ request = $ this -> container -> get ( 'kernel' ) -> getRequest ( ) ; } return ( $ request ) ; }
getRequest
Get the request object from the container

@return Symfony\Component\HttpFoundation\Request $request;
getRequest Get the request object from the container