|
| dispatch ($httpMethod, $uri) |
| Dispatches against the provided HTTP method verb and URI. More...
|
|
Definition at line 5 of file Dispatcher.php.
◆ dispatch()
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', ...]]
- Parameters
-
string | $httpMethod | |
string | $uri | |
- Returns
- array
Implemented in FastRoute\Dispatcher\RegexBasedAbstract.
◆ FOUND
const FastRoute\Dispatcher::FOUND = 1 |
◆ METHOD_NOT_ALLOWED
const FastRoute\Dispatcher::METHOD_NOT_ALLOWED = 2 |
◆ NOT_FOUND
const FastRoute\Dispatcher::NOT_FOUND = 0 |
The documentation for this interface was generated from the following file: