\Pydio\Core\HttpTopLevelRouter

Class TopLevelRouter Creates a simple router for top level segments. Will replace the RewriteRules and others.

Summary

Methods
Properties
Constants
__construct()
configureRoutes()
getURIForRequest()
route()
No public properties found
ROUTE_CACHE_FILENAME
No protected methods found
No protected properties found
N/A
No private methods found
$cacheOptions
$base
N/A

Constants

ROUTE_CACHE_FILENAME

ROUTE_CACHE_FILENAME

Properties

$cacheOptions

$cacheOptions : array

Type

array — "cacheOptions" => ["cacheFile" => "path", "cacheDisabled" => true],

$base

$base : 

Type

Methods

__construct()

__construct(array  $cacheOptions = array()) 

TopLevelRouter constructor.

Parameters

array $cacheOptions

configureRoutes()

configureRoutes(string  $base, \FastRoute\RouteCollector  $r) 

Parameters

string $base

Base URI (empty string if "/").

\FastRoute\RouteCollector $r

getURIForRequest()

getURIForRequest(\Psr\Http\Message\ServerRequestInterface  $request) : string

Simple parser to get URI

Parameters

\Psr\Http\Message\ServerRequestInterface $request

Returns

string

route()

route() 

Throws

\Pydio\Core\Exception\PydioException