Router
extends Router
in package
Table of Contents
- $app : App
- $resolvedInstance : array<string|int, mixed>
- __callStatic() : mixed
- any() :
- autoRute() :
- clearResolvedInstances() : mixed
- clear
- delete() :
- errors() :
- get() :
- getController() :
- getMethod() :
- getNames() :
- getNameSpace() :
- getParams() :
- getPrefix() :
- global() :
- group() :
- head() :
- matchName() :
- middleware() :
- name() :
- nameSpace() :
- options() :
- patch() :
- post() :
- prefix() :
- put() :
- setErrorPage() :
- setFacadeApplication() : mixed
- {@inheritDoc}
- where() :
- getFacadeAccessor() : string
- getFacadeRoot() : object|stdClass
- resolveFacadeInstance() : object
Properties
$app
protected
static App
$app
$resolvedInstance
protected
static array<string|int, mixed>
$resolvedInstance
Methods
__callStatic()
public
static __callStatic( $method, $args) : mixed
Parameters
Tags
Return values
mixed —any()
public
static any(string $pattern, mixed $cmp) :
Parameters
- $pattern : string
- $cmp : mixed
Return values
—autoRute()
public
static autoRute() :
Return values
—clearResolvedInstances()
clear
public
static clearResolvedInstances() : mixed
Return values
mixed —delete()
public
static delete(string $pattern, mixed $cmp) :
Parameters
- $pattern : string
- $cmp : mixed
Return values
—errors()
public
static errors(mixed $http_code, callable $callback = null) :
Parameters
- $http_code : mixed
- $callback = null : callable
Return values
—get()
public
static get(string $pattern, mixed $cmp) :
Parameters
- $pattern : string
- $cmp : mixed
Return values
—getController()
public
static getController() :
Return values
—getMethod()
public
static getMethod() :
Return values
—getNames()
public
static getNames(string $searchName) :
Parameters
- $searchName : string
Return values
—getNameSpace()
public
static getNameSpace() :
Return values
—getParams()
public
static getParams() :
Return values
—getPrefix()
public
static getPrefix() :
Return values
—global()
public
static global(array<string|int, mixed> $options) :
Parameters
- $options : array<string|int, mixed>
Return values
—group()
public
static group(array<string|int, mixed> $options, callable $callback) :
Parameters
- $options : array<string|int, mixed>
- $callback : callable
Return values
—head()
public
static head(string $pattern, mixed $cmp) :
Parameters
- $pattern : string
- $cmp : mixed
Return values
—matchName()
public
static matchName(string $routerName) :
Parameters
- $routerName : string
Return values
—middleware()
public
static middleware(mixed $middleware) :
Parameters
- $middleware : mixed
Return values
—name()
public
static name(string $routeName) :
Parameters
- $routeName : string
Return values
—nameSpace()
public
static nameSpace(string $nameSpace) :
Parameters
- $nameSpace : string
Return values
—options()
public
static options(string $pattern, mixed $cmp) :
Parameters
- $pattern : string
- $cmp : mixed
Return values
—patch()
public
static patch(string $pattern, mixed $cmp) :
Parameters
- $pattern : string
- $cmp : mixed
Return values
—post()
public
static post(string $pattern, mixed $cmp) :
Parameters
- $pattern : string
- $cmp : mixed
Return values
—prefix()
public
static prefix(string $prefix) :
Parameters
- $prefix : string
Return values
—put()
public
static put(string $pattern, mixed $cmp) :
Parameters
- $pattern : string
- $cmp : mixed
Return values
—setErrorPage()
public
static setErrorPage(mixed $http_code, callable $callback = function($http_code, mixed $http_error_message) :
})
Parameters
- $http_code : mixed
- $callback = function($http_code : callable
- $http_error_message : mixed
Return values
—setFacadeApplication()
{@inheritDoc}
public
static setFacadeApplication(App $app) : mixed
Parameters
- $app : App
Return values
mixed —where()
public
static where(mixed $pattern, mixed $replacement) :
Parameters
- $pattern : mixed
- $replacement : mixed
Return values
—getFacadeAccessor()
protected
abstract static getFacadeAccessor() : string
Return values
string —getFacadeRoot()
protected
static getFacadeRoot() : object|stdClass
Return values
object|stdClass —resolveFacadeInstance()
protected
static resolveFacadeInstance(string $mainClass) : object
Parameters
- $mainClass : string