src/Processor.php
public function handle(ServerRequestInterface $request): ResponseInterface
	{
		if ($this->stages->valid()) {
			$stage = $this->stages->current();
			$this->stages->next();

			return $stage->process($request, $this);
		}

		return $this->responseFactory->createResponse(404);
	}
public function handle(ServerRequestInterface $request): ResponseInterface
	{
		if ($this->stages->valid()) {
			$stage = $this->stages->current();
			$this->stages->next();

			return $stage->process($request, $this);
		}

		return $this->responseFactory->createResponse(404);
	}
public function handle ( ServerRequestInterface $ request ) : ResponseInterface { if ( $ this -> stages -> valid ( ) ) { $ stage = $ this -> stages -> current ( ) ; $ this -> stages -> next ( ) ; return $ stage -> process ( $ request , $ this ) ; } return $ this -> responseFactory -> createResponse ( 404 ) ; }
Handle the request

@param ServerRequestInterface $request
@return ResponseInterface
Handle the request