HttpRouter
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
- connect() : mixed
- delete() : mixed
- extends() : bool
- get() : mixed
- getApplication() : IApplication
- getInstance() : ISingleton
- getReflection() : ReflectionClass
- getRoute() : IRoute
- Gets the active route that is currently being executed in this router
- head() : mixed
- options() : mixed
- post() : mixed
- put() : mixed
- route() : IRoute
- Routes a request to the appropriate controller and action with the application
- setApplication() : mixed
- trace() : 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
connect()
public
connect(UriPath $path) : mixed
Parameters
- $path : UriPath
delete()
public
delete(UriPath $path) : mixed
Parameters
- $path : UriPath
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolget()
public
get(UriPath $path) : mixed
Parameters
- $path : UriPath
getApplication()
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
IRoutehead()
public
head(UriPath $path) : mixed
Parameters
- $path : UriPath
options()
public
options(UriPath $path) : mixed
Parameters
- $path : UriPath
post()
public
post(UriPath $path) : mixed
Parameters
- $path : UriPath
put()
public
put(UriPath $path) : mixed
Parameters
- $path : UriPath
route()
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
trace()
public
trace(UriPath $path) : mixed
Parameters
- $path : UriPath
__construct()
protected
__construct() : mixed
init()
{@inheritdoc}
protected
init() : mixed