Router
extends Component
in package
implements
IRouter, ISingleton
AbstractYes
Tags
Table of Contents
Interfaces
Properties
- $application : IApplication
- The application is router is currently routing an action for
- $route : IRoute
- The active route that is currently being executed in this router / application
- $routes : ArrayObject
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __destruct() : mixed
- __get() : mixed
- extends() : bool
- getApplication() : IApplication
- getReflection() : ReflectionClass
- getRoute() : IRoute
- Gets the active route that is currently being executed in this router
- route() : IRoute
- Routes a request to the appropriate controller and action with the application
- setApplication() : mixed
- __construct() : mixed
- init() : mixed
- {@inheritdoc}
Properties
$application
The application is router is currently routing an action for
protected
IApplication
$application
$route
The active route that is currently being executed in this router / application
protected
IRoute
$route
Tags
$routes
protected
ArrayObject
$routes
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetApplication()
public
getApplication() : IApplication
Tags
Return values
IApplicationgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetRoute()
Gets the active route that is currently being executed in this router
public
getRoute() : IRoute
Tags
Return values
IRouteroute()
Routes a request to the appropriate controller and action with the application
public
abstract route(IRequest $request) : IRoute
Parameters
- $request : IRequest
Return values
IRoutesetApplication()
public
abstract setApplication(IApplication $application) : mixed
Parameters
- $application : IApplication
__construct()
protected
__construct() : mixed
init()
{@inheritdoc}
protected
init() : mixed