ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
FastRoute\Dispatcher Interface Reference
+ Inheritance diagram for FastRoute\Dispatcher:
+ Collaboration diagram for FastRoute\Dispatcher:

Data Structures

class  CharCountBasedTest
 
class  DispatcherTest
 
class  GroupCountBasedTest
 
class  GroupPosBasedTest
 
class  MarkBasedTest
 

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

const FastRoute\Dispatcher::FOUND = 1

Definition at line 8 of file Dispatcher.php.

◆ METHOD_NOT_ALLOWED

const FastRoute\Dispatcher::METHOD_NOT_ALLOWED = 2

Definition at line 9 of file Dispatcher.php.

◆ NOT_FOUND

const FastRoute\Dispatcher::NOT_FOUND = 0

Definition at line 7 of file Dispatcher.php.


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