protected function parseIncomingRequest($request)
    {
        if (! $request) {
            $request = LumenRequest::capture();
        }

        $this->instance(Request::class, $this->prepareRequest($request));

        return [$request->getMethod(), '/'.\trim($request->getPathInfo(), '/')];
    }
protected function parseIncomingRequest($request)
    {
        if (! $request) {
            $request = LumenRequest::capture();
        }

        $this->instance(Request::class, $this->prepareRequest($request));

        return [$request->getMethod(), '/'.\trim($request->getPathInfo(), '/')];
    }
protected function parseIncomingRequest ( $ request ) { if ( ! $ request ) { $ request = LumenRequest :: capture ( ) ; } $ this -> instance ( Request :: class , $ this -> prepareRequest ( $ request ) ) ; return [ $ request -> getMethod ( ) , '/' . \ trim ( $ request -> getPathInfo ( ) , '/' ) ] ; }
Parse the incoming request and return the method and path info.

@param  \Symfony\Component\HttpFoundation\Request|null  $request

@return array
Parse the incoming request and return the method and path info .