src/Middleware/Middleware.php
public function execute($pipelineName = null)
	{
		$request = $this->requestFactory->newIncomingRequest();
		if ($this->adaptor->isDoublePass()) {
			$response = $this->responseFactory->newResponse();
		} else {
			$response = null;
		}
		return $this->chain($pipelineName, $request, $response);
	}
public function execute($pipelineName = null)
	{
		$request = $this->requestFactory->newIncomingRequest();
		if ($this->adaptor->isDoublePass()) {
			$response = $this->responseFactory->newResponse();
		} else {
			$response = null;
		}
		return $this->chain($pipelineName, $request, $response);
	}
public function execute ( $ pipelineName = null ) { $ request = $ this -> requestFactory -> newIncomingRequest ( ) ; if ( $ this -> adaptor -> isDoublePass ( ) ) { $ response = $ this -> responseFactory -> newResponse ( ) ; } else { $ response = null ; } return $ this -> chain ( $ pipelineName , $ request , $ response ) ; }
Create and execute the named pipeline as an initial entry pipeline.

Similar to chaining but also sets up a Request based on the global data and,
if needed, a Response object.

@param string $pipelineName Optional pipeline name.

@return Response A PSR7 response object.
Create and execute the named pipeline as an initial entry pipeline .