WebKernel
in package
implements
KernelInterface
The web kernel allows the application to interact with a web server and to select a controller that will provide an adequate response to the request.
Tags
Interfaces, Classes and Traits
- KernelInterface
- The kernel interface allows to define standard behaviors that a kernel must implement to get booted and be able to execute the way it's intended
Table of Contents
- $router : mixed
- __construct() : mixed
- boot() : mixed
- initScripts() : array<string|int, string>
- process() : Response
- The web kernel receives a request and processes it to generate a response. At the time of writing this means that Spitfire will use the router to find a compatible controller, and if this didn't work, it will proceed to issue a standard 404 page.
- router() : Router
Properties
$router
private
mixed
$router
Methods
__construct()
public
__construct(Container $provider) : mixed
Parameters
- $provider : Container
Return values
mixed —boot()
public
boot() : mixed
Return values
mixed —initScripts()
public
initScripts() : array<string|int, string>
Return values
array<string|int, string> —process()
The web kernel receives a request and processes it to generate a response. At the time of writing this means that Spitfire will use the router to find a compatible controller, and if this didn't work, it will proceed to issue a standard 404 page.
public
process(Request $request) : Response
If the application ran into a different error than not having a route available, Spitfire will issue an appropriate error page.
Parameters
- $request : Request
Return values
Response —router()
public
router() : Router