ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
map ($methods, $pattern, $handler) | |
Add route. More... | |
dispatch (ServerRequestInterface $request) | |
Dispatch router for HTTP request. More... | |
pushGroup ($pattern, $callable) | |
Add a route group to the array. More... | |
popGroup () | |
Removes the last route group from the array. More... | |
getNamedRoute ($name) | |
Get named route object. More... | |
lookupRoute ($identifier) | |
relativePathFor ($name, array $data=[], array $queryParams=[]) | |
Build the path for a named route excluding the base path. More... | |
pathFor ($name, array $data=[], array $queryParams=[]) | |
Build the path for a named route including the base path. More... | |
Data Fields | |
const | DISPATCH_STATUS = 0 |
const | ALLOWED_METHODS = 1 |
Definition at line 21 of file RouterInterface.php.
Slim\Interfaces\RouterInterface::dispatch | ( | ServerRequestInterface | $request | ) |
Dispatch router for HTTP request.
ServerRequestInterface | $request | The current HTTP request object |
https://github.com/nikic/FastRoute/blob/master/src/Dispatcher.php
Implemented in Slim\Router.
Referenced by Slim\App\dispatchRouterAndPrepareRoute().
Slim\Interfaces\RouterInterface::getNamedRoute | ( | $name | ) |
Get named route object.
string | $name | Route name |
RuntimeException | If named route does not exist |
Implemented in Slim\Router.
Slim\Interfaces\RouterInterface::lookupRoute | ( | $identifier | ) |
$identifier |
Implemented in Slim\Router.
Referenced by Slim\App\dispatchRouterAndPrepareRoute().
Slim\Interfaces\RouterInterface::map | ( | $methods, | |
$pattern, | |||
$handler | |||
) |
Add route.
string[] | $methods Array of HTTP methods | |
string | $pattern | The route pattern |
callable | $handler | The route callable |
Implemented in Slim\Router.
Build the path for a named route including the base path.
string | $name | Route name |
array | $data | Named argument replacement data |
array | $queryParams | Optional query string parameters |
RuntimeException | If named route does not exist |
InvalidArgumentException | If required data not provided |
Implemented in Slim\Router.
Slim\Interfaces\RouterInterface::popGroup | ( | ) |
Removes the last route group from the array.
Implemented in Slim\Router.
Slim\Interfaces\RouterInterface::pushGroup | ( | $pattern, | |
$callable | |||
) |
Add a route group to the array.
string | $pattern | The group pattern |
callable | $callable | A group callable |
Implemented in Slim\Router.
Slim\Interfaces\RouterInterface::relativePathFor | ( | $name, | |
array | $data = [] , |
||
array | $queryParams = [] |
||
) |
Build the path for a named route excluding the base path.
string | $name | Route name |
array | $data | Named argument replacement data |
array | $queryParams | Optional query string parameters |
RuntimeException | If named route does not exist |
InvalidArgumentException | If required data not provided |
Implemented in Slim\Router.
const Slim\Interfaces\RouterInterface::ALLOWED_METHODS = 1 |
Definition at line 25 of file RouterInterface.php.
const Slim\Interfaces\RouterInterface::DISPATCH_STATUS = 0 |
Definition at line 24 of file RouterInterface.php.