Controller
extends Component
in package
implements
IController
AbstractYes
Tags
Table of Contents
Interfaces
Properties
- $authenticator : IControllerAuthenticator
- $event_dispatcher : EventDispatcher
- $request : IRequest
- $response : IResponse
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- extends() : bool
- getAuthenticator() : IControllerAuthenticator
- getIdMatched() : string|null
- Gets the id match in the URL path of the request
- getReflection() : ReflectionClass
- getRequest() : IRequest
- getResponse() : IResponse
- getShortName() : string
- setEventDispatcher() : mixed
- authenticate() : void
- init() : mixed
- {@inheritdoc}
- setRequest() : mixed
- setResponse() : mixed
Properties
$authenticator
protected
IControllerAuthenticator
$authenticator
$event_dispatcher
protected
EventDispatcher
$event_dispatcher
$request
protected
IRequest
$request
$response
protected
IResponse
$response
$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(IRequest $request, IResponse $response) : mixed
Parameters
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetAuthenticator()
public
getAuthenticator() : IControllerAuthenticator
Return values
IControllerAuthenticatorgetIdMatched()
Gets the id match in the URL path of the request
public
getIdMatched() : string|null
Return values
string|null —The id matched in the URL of the request, null if it was not matched
getReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetRequest()
public
getRequest() : IRequest
Tags
Return values
IRequestgetResponse()
public
getResponse() : IResponse
Tags
Return values
IResponsegetShortName()
public
getShortName() : string
Return values
stringsetEventDispatcher()
public
setEventDispatcher(IEventDispatcher $event_dispatcher) : mixed
Parameters
- $event_dispatcher : IEventDispatcher
authenticate()
protected
authenticate() : void
init()
{@inheritdoc}
protected
init() : mixed
Tags
setRequest()
private
setRequest(IRequest $request) : mixed
Parameters
- $request : IRequest
setResponse()
private
setResponse(IResponse $response) : mixed
Parameters
- $response : IResponse