ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FastRoute\Dispatcher Interface Reference
+ Inheritance diagram for FastRoute\Dispatcher:
+ Collaboration diagram for FastRoute\Dispatcher:

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
 

Detailed Description

Definition at line 5 of file Dispatcher.php.

Member Function Documentation

◆ 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.

Field Documentation

◆ FOUND

◆ METHOD_NOT_ALLOWED

const FastRoute\Dispatcher::METHOD_NOT_ALLOWED = 2

Definition at line 9 of file Dispatcher.php.

Referenced by FastRoute\Dispatcher\RegexBasedAbstract\dispatch().

◆ NOT_FOUND


The documentation for this interface was generated from the following file: