bootstrap()
bootstrap() : void
Load all the application configuration and bootstrap logic.
Override this method to add additional bootstrap logic for your application.
An interface defining the methods that the http server depend on.
routes(\Cake\Routing\RouteBuilder $routes) : void
Define the routes for an application.
Use the provided RouteBuilder to define an application's routing.
\Cake\Routing\RouteBuilder | $routes | A route builder to add routes into. |
middleware(\Cake\Http\MiddlewareQueue $middleware) : \Cake\Http\MiddlewareQueue
Define the HTTP middleware layers for an application.
\Cake\Http\MiddlewareQueue | $middleware | The middleware queue to set in your App Class |
__invoke(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, callable $next) : \Psr\Http\Message\ResponseInterface
Invoke the application.
\Psr\Http\Message\ServerRequestInterface | $request | The request |
\Psr\Http\Message\ResponseInterface | $response | The response |
callable | $next | The next middleware |
Loading…