Base class for application classes.
The application class is responsible for bootstrapping the application, and ensuring that middleware is attached. It is also invoked as the last piece of middleware, and delegates request/response handling to the correct controller.
$configDir
protected string
__construct( string $configDir )
Constructor
$configDir
__invoke( Psr\Http\Message\ServerRequestInterface $request , Psr\Http\Message\ResponseInterface $response , callable $next )
Invoke the application.
$request
$response
$next
bootstrap( )
Load all the application configuration and bootstrap logic.
Override this method to add additional bootstrap logic for your application.
getDispatcher( )
Get the ActionDispatcher.
Cake\Http\ActionDispatcher
middleware( Cake\Http\MiddlewareQueue $middleware )
Cake\Http\MiddlewareQueue
$middleware
Cake\Http\MiddlewareQueue
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Http.BaseApplication.html