Runner

Collects any Route plugins and runs them, returning the response.

class Runner
Copyright
2015-2016 Appertly
License
Apache-2.0

Constructors / Destructors

Public
ReturnsSignature and Description
void
__construct(Container $c)

Creates a new Runner.

Instance Methods

Public
ReturnsSignature and Description
ResponseInterface
run(ServerRequestInterface $request, ResponseInterface $response)

Middleware request–response handling.

Method Details

__construct

public function __construct(Container $c)

Creates a new Runner.

Parameters
NameTypeDescription
$cContainer

The container

run

public function run(ServerRequestInterface $request, ResponseInterface $response)

Middleware request–response handling.

Parameters
NameTypeDescription
$requestServerRequestInterface

The server request

$responseResponseInterface

The response

Returns
TypeDescription
ResponseInterface

The response