private function getRequestFactory()
    {
        if ($requestFactory = $this->app->config->get('swap.request_factory')) {
            return $this->app[$requestFactory];
        }

        return null;
    }
private function getRequestFactory()
    {
        if ($requestFactory = $this->app->config->get('swap.request_factory')) {
            return $this->app[$requestFactory];
        }

        return null;
    }
private function getRequestFactory ( ) { if ( $ requestFactory = $ this -> app -> config -> get ( 'swap.request_factory' ) ) { return $ this -> app [ $ requestFactory ] ; } return null ; }
Gets the request factory.

@return \Psr\Http\Message\RequestFactoryInterface|null
Gets the request factory .