CliRouter
extends Router
in package
Uses
TSingleton
FinalYes
Tags
Table of Contents
Properties
- $application : IApplication
- The application is router is currently routing an action for
- $instance : ISingleton
- $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
- getInstance() : ISingleton
- 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
$instance
protected
static ISingleton
$instance
$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
IApplicationgetInstance()
public
static getInstance() : ISingleton
Return values
ISingletongetReflection()
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
route(IRequest $request) : IRoute
Parameters
- $request : IRequest
Tags
Return values
IRoutesetApplication()
public
setApplication(IApplication $application) : mixed
Parameters
- $application : IApplication
Tags
__construct()
protected
__construct() : mixed
init()
{@inheritdoc}
protected
init() : mixed