PHP Class Flarum\Http\RouteCollection

Show file Open project: flarum/core Class Usage Examples

Protected Properties

Property Type Description
$dataGenerator FastRoute\DataGenerator
$reverse array
$routeParser FastRoute\RouteParser

Public Methods

Method Description
__construct ( )
addRoute ( $method, $path, $name, $handler )
delete ( $path, $name, $handler )
get ( $path, $name, $handler )
getPath ( $name, array $parameters = [] )
getRouteData ( )
patch ( $path, $name, $handler )
post ( $path, $name, $handler )
put ( $path, $name, $handler )

Protected Methods

Method Description
fixPathPart ( &$part, $key, array $parameters )

Method Details

__construct() public method

public __construct ( )

addRoute() public method

public addRoute ( $method, $path, $name, $handler )

delete() public method

public delete ( $path, $name, $handler )

fixPathPart() protected method

protected fixPathPart ( &$part, $key, array $parameters )
$parameters array

get() public method

public get ( $path, $name, $handler )

getPath() public method

public getPath ( $name, array $parameters = [] )
$parameters array

getRouteData() public method

public getRouteData ( )

patch() public method

public patch ( $path, $name, $handler )

post() public method

public post ( $path, $name, $handler )

put() public method

public put ( $path, $name, $handler )

Property Details

$dataGenerator protected property

protected DataGenerator,FastRoute $dataGenerator
return FastRoute\DataGenerator

$reverse protected property

protected array $reverse
return array

$routeParser protected property

protected RouteParser,FastRoute $routeParser
return FastRoute\RouteParser