private function createRequest(Request $request = null): void
    {
        if (!$this->request && is_null($request)) {
            $request = ServerRequest::fromGlobals()
                ->withParsedBody(json_decode(file_get_contents('php://input')));
        }

        $this->container->set(Request::class, $request);
        $this->request = $request;
    }
private function createRequest(Request $request = null): void
    {
        if (!$this->request && is_null($request)) {
            $request = ServerRequest::fromGlobals()
                ->withParsedBody(json_decode(file_get_contents('php://input')));
        }

        $this->container->set(Request::class, $request);
        $this->request = $request;
    }
private function createRequest ( Request $ request = null ) : void { if ( ! $ this -> request && is_null ( $ request ) ) { $ request = ServerRequest :: fromGlobals ( ) -> withParsedBody ( json_decode ( file_get_contents ( 'php://input' ) ) ) ; } $ this -> container -> set ( Request :: class , $ request ) ; $ this -> request = $ request ; }
Create the request object.
Create the request object .