class Application (View source)

The core application that runs the main middleware stack.

Methods

__construct(HttpFactoryInterface $factory, MiddlewareHandler $stack, HttpClient $client)

Application constructor.

void
run()

Runs the application middleware stack for the request and sends the response.

Details

__construct(HttpFactoryInterface $factory, MiddlewareHandler $stack, HttpClient $client)

Application constructor.

Parameters

HttpFactoryInterface $factory The factory used to generate the request from globals
MiddlewareHandler $stack The middleware stack that is run for every request
HttpClient $client The http client the application uses to communicate to the browser

void run()

Runs the application middleware stack for the request and sends the response.

Return Value

void