public function &getRequest($requestClass = '')
    {
        if (!is_string($requestClass) || $requestClass === '') {
            $requestClass = $this->getConfig()->get('Request.class', null, 'Teleport\Request\CLIRequest');
        }
        if (!$this->request instanceof $requestClass) {
            $this->request = new $requestClass();
        }
        return $this->request;
    }
public function &getRequest($requestClass = '')
    {
        if (!is_string($requestClass) || $requestClass === '') {
            $requestClass = $this->getConfig()->get('Request.class', null, 'Teleport\Request\CLIRequest');
        }
        if (!$this->request instanceof $requestClass) {
            $this->request = new $requestClass();
        }
        return $this->request;
    }
public function & getRequest ( $ requestClass = '' ) { if ( ! is_string ( $ requestClass ) || $ requestClass === '' ) { $ requestClass = $ this -> getConfig ( ) -> get ( 'Request.class' , null , 'Teleport\Request\CLIRequest' ) ; } if ( ! $ this -> request instanceof $ requestClass ) { $ this -> request = new $ requestClass ( ) ; } return $ this -> request ; }
Get a Teleport Request object of a specific class.

@param string $requestClass The Request class to get an instance of.

@return Request A Teleport Request object.
Get a Teleport Request object of a specific class .