public function getBaseRequest()
    {
        if (!isset($this->baseRequest)) {
            $this->baseRequest = new ServerRequest();
        }
        
        $request = $this->baseRequest;
        
        if ($request instanceof GlobalEnvironmentInterface && $request->isStale() === false) {
            $request = $request->withGlobalEnvironment(true); // Make sure base request is stale
        }
        
        return $request;
    }
public function getBaseRequest()
    {
        if (!isset($this->baseRequest)) {
            $this->baseRequest = new ServerRequest();
        }
        
        $request = $this->baseRequest;
        
        if ($request instanceof GlobalEnvironmentInterface && $request->isStale() === false) {
            $request = $request->withGlobalEnvironment(true); // Make sure base request is stale
        }
        
        return $request;
    }
public function getBaseRequest ( ) { if ( ! isset ( $ this -> baseRequest ) ) { $ this -> baseRequest = new ServerRequest ( ) ; } $ request = $ this -> baseRequest ; if ( $ request instanceof GlobalEnvironmentInterface && $ request -> isStale ( ) === false ) { $ request = $ request -> withGlobalEnvironment ( true ) ; // Make sure base request is stale } return $ request ; }
Get the base request

@return ServerRequestInterface
Get the base request