Dispatcher
extends Component
in package
implements
IDispatcher, ISingleton
Uses
TSingleton
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $instance : ISingleton
- $application : IApplication
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- dispatch() : void
- extends() : bool
- getApplication() : IApplication
- getInstance() : ISingleton
- getReflection() : ReflectionClass
- setApplication() : mixed
- init() : mixed
- handleCliResult() : mixed
- handleHttpResult() : mixed
Properties
$instance
protected
static ISingleton
$instance
$application
private
IApplication
$application
$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>
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
dispatch()
public
dispatch(IRequest $request, IRoute $route) : void
Parameters
Tags
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetApplication()
public
getApplication() : IApplication
Return values
IApplicationgetInstance()
public
static getInstance() : ISingleton
Return values
ISingletongetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClasssetApplication()
public
setApplication(IApplication $application) : mixed
Parameters
- $application : IApplication
init()
protected
init() : mixed
handleCliResult()
private
handleCliResult(mixed $request, mixed $result) : mixed
Parameters
- $request : mixed
- $result : mixed
handleHttpResult()
private
handleHttpResult(mixed $request, mixed $result) : mixed
Parameters
- $request : mixed
- $result : mixed