|
|
string readonly string | $basepath |
| | The base path to use for all requests.
|
| |
|
|
| add_middleware () |
| | Add Middleware to the App.
|
| |
| | configure_api_route (RouteGroupInterface $group) |
| | Configure the API Route Middleware.
|
| |
|
| configure_caching () |
| | Configure caching for the routes.
|
| |
|
| configure_routes () |
| | Configure the API routes.
|
| |
| | create_app (string $basepath='',) |
| | Create the configured SlimPHP Application.
|
| |
| | guess_basepath () |
| | Guess the basepath for the Router.
|
| |
|
|
App readonly App | $app |
| | The SlimPHP App.
|
| |
◆ __construct()
Create a new Router.
- Parameters
-
| response_handler | $responsehandler | |
| route_loader_interface | $routeloader | |
| request_validator_interface | $requestvalidator | |
| response_validator_interface | $responsevalidator | |
| null | string | $basepath | |
- Parameters
-
| $routeloader | The router loader to use |
◆ configure_api_route()
Configure the API Route Middleware.
- Parameters
-
| RouteGroupInterface | $group | |
◆ create_app()
| core\router::create_app |
( |
string | $basepath = '' | ) |
|
|
protected |
Create the configured SlimPHP Application.
- Parameters
-
| string | $basepath | The base path of the Moodle instance |
◆ get_app()
Get the configured SlimPHP Application.
- Return values
-
◆ get_response_factory()
| core\router::get_response_factory |
( |
| ) |
|
Get the Response Factory for the Router.
- Return values
-
◆ guess_basepath()
| core\router::guess_basepath |
( |
| ) |
|
|
protected |
Guess the basepath for the Router.
- Return values
-
◆ handle_request()
Handle the specified Request.
- Parameters
-
| ServerRequestInterface | $request | |
- Return values
-
◆ serve()
Serve the current request using global variables.
@codeCoverageIgnore
The documentation for this class was generated from the following file: