\FastRoute\DispatcherMarkBased

Summary

Methods
Properties
Constants
dispatch()
__construct()
No public properties found
No constants found
dispatchVariableRoute()
$staticRouteMap
$variableRouteData
N/A
No private methods found
No private properties found
N/A

Properties

$staticRouteMap

$staticRouteMap : array<mixed,mixed[]>

Type

array<mixed,mixed[]>

$variableRouteData

$variableRouteData : array<mixed,mixed>

Type

array<mixed,mixed>

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

__construct()

__construct(  $data) 

Parameters

$data

dispatchVariableRoute()

dispatchVariableRoute(  $routeData,   $uri) : array<mixed,mixed>

Parameters

$routeData
$uri

Returns

array<mixed,mixed>