Galette abstract controller
- Author
- Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be
◆ __construct()
Galette\Controllers\AbstractController::__construct |
( |
ContainerInterface |
$container | ) |
|
Constructor
- Parameters
-
ContainerInterface | $container | Container instance |
◆ galetteRedirect()
Galette\Controllers\AbstractController::galetteRedirect |
( |
Request |
$request, |
|
|
Response |
$response |
|
) |
| |
|
protected |
Galette redirection workflow Each user have a default homepage depending on it status (logged in or not, its credentials, etc.
- Parameters
-
Request | $request | PSR Request |
Response | $response | PSR Response |
- Returns
- Response
◆ getArgs()
Galette\Controllers\AbstractController::getArgs |
( |
Request |
$request | ) |
|
|
protected |
Get route arguments php-di bridge pass each variable, not an array of all arguments
- Parameters
-
Request | $request | PSR Request |
- Returns
- array<string,mixed>
◆ withJson()
Galette\Controllers\AbstractController::withJson |
( |
Response |
$response, |
|
|
array |
$data, |
|
|
int |
$status = 200 |
|
) |
| |
|
protected |
Get a JSON response
- Parameters
-
Response | $response | Response instance |
| array<string,mixed> | $data Data to send |
int | $status | HTTP status code |
- Returns
- Response
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Controllers/AbstractController.php