\FastRouteDispatcher

Summary

Methods
Constants
dispatch()
NOT_FOUND
FOUND
METHOD_NOT_ALLOWED
No protected methods found
N/A
No private methods found
N/A

Constants

NOT_FOUND

NOT_FOUND = 0

FOUND

FOUND = 1

METHOD_NOT_ALLOWED

METHOD_NOT_ALLOWED = 2

Methods

dispatch()

dispatch(string  $httpMethod, string  $uri) : array

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