ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
dispatch ($httpMethod, $uri) | |
Dispatches against the provided HTTP method verb and URI. More... | |
Data Fields | |
const | NOT_FOUND = 0 |
const | FOUND = 1 |
const | METHOD_NOT_ALLOWED = 2 |
Definition at line 5 of file Dispatcher.php.
FastRoute\Dispatcher::dispatch | ( | $httpMethod, | |
$uri | |||
) |
Dispatches against the provided HTTP method verb and URI.
Returns array with one of the following formats:
[self::NOT_FOUND] [self::METHOD_NOT_ALLOWED, ['GET', 'OTHER_ALLOWED_METHODS']] [self::FOUND, $handler, ['varName' => 'value', ...]]
string | $httpMethod | |
string | $uri |
Implemented in FastRoute\Dispatcher\RegexBasedAbstract.
const FastRoute\Dispatcher::FOUND = 1 |
Definition at line 8 of file Dispatcher.php.
Referenced by FastRoute\Dispatcher\RegexBasedAbstract\dispatch(), FastRoute\Dispatcher\CharCountBased\dispatchVariableRoute(), FastRoute\Dispatcher\GroupCountBased\dispatchVariableRoute(), FastRoute\Dispatcher\GroupPosBased\dispatchVariableRoute(), and FastRoute\Dispatcher\MarkBased\dispatchVariableRoute().
const FastRoute\Dispatcher::METHOD_NOT_ALLOWED = 2 |
Definition at line 9 of file Dispatcher.php.
Referenced by FastRoute\Dispatcher\RegexBasedAbstract\dispatch().
const FastRoute\Dispatcher::NOT_FOUND = 0 |
Definition at line 7 of file Dispatcher.php.
Referenced by FastRoute\Dispatcher\RegexBasedAbstract\dispatch(), FastRoute\Dispatcher\CharCountBased\dispatchVariableRoute(), FastRoute\Dispatcher\GroupCountBased\dispatchVariableRoute(), FastRoute\Dispatcher\GroupPosBased\dispatchVariableRoute(), and FastRoute\Dispatcher\MarkBased\dispatchVariableRoute().