PHP Class FluxBB\Web\Router

Show file Open project: fluxbb/core Class Usage Examples

Protected Properties

Property Type Description
$currentRequestName string
$currentRequestParameters array
$dataGenerator FastRoute\DataGenerator
$dispatcher FastRoute\Dispatcher
$reverse array
$routeParser FastRoute\RouteParser

Public Methods

Method Description
__construct ( )
addRoute ( $method, $path, $name, $handler )
delete ( $path, $name, $handler )
get ( $path, $name, $handler )
getCallable ( $method, $uri )
getCurrentPath ( )
getMethod ( $handler )
getPath ( $name, $parameters = [] )
post ( $path, $name, $handler )
put ( $path, $name, $handler )

Protected Methods

Method Description
getDispatcher ( )

Method Details

__construct() public method

public __construct ( )

addRoute() public method

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

delete() public method

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

get() public method

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

getCallable() public method

public getCallable ( $method, $uri )

getCurrentPath() public method

public getCurrentPath ( )

getDispatcher() protected method

protected getDispatcher ( )

getMethod() public method

public getMethod ( $handler )

getPath() public method

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

post() public method

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

put() public method

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

Property Details

$currentRequestName protected property

protected string $currentRequestName
return string

$currentRequestParameters protected property

protected array $currentRequestParameters
return array

$dataGenerator protected property

protected DataGenerator,FastRoute $dataGenerator
return FastRoute\DataGenerator

$dispatcher protected property

protected Dispatcher,FastRoute $dispatcher
return FastRoute\Dispatcher

$reverse protected property

protected array $reverse
return array

$routeParser protected property

protected RouteParser,FastRoute $routeParser
return FastRoute\RouteParser