RouterDataCollector
extends DataCollector
in package
DataCollector.
Tags
Table of Contents
- $controllers : SplObjectStorage<Request, callable>
- $data : array<string|int, mixed>|Data
- $cloner : ClonerInterface
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getName() : mixed
- {@inheritdoc}
- getRedirect() : bool
- getTargetRoute() : string|null
- getTargetUrl() : string|null
- onKernelController() : mixed
- Remembers the controller associated to each request.
- reset() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- guessRoute() : mixed
Properties
$controllers
protected
SplObjectStorage<Request, callable>
$controllers
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
ClonerInterface
$cloner
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__wakeup()
public
__wakeup() : mixed
Return values
mixed —collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable|null $exception = null ]) : mixed
Parameters
Tags
Return values
mixed —getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —getRedirect()
public
getRedirect() : bool
Return values
bool —Whether this request will result in a redirect
getTargetRoute()
public
getTargetRoute() : string|null
Return values
string|null —getTargetUrl()
public
getTargetUrl() : string|null
Return values
string|null —onKernelController()
Remembers the controller associated to each request.
public
onKernelController(ControllerEvent $event) : mixed
Parameters
- $event : ControllerEvent
Return values
mixed —reset()
public
reset() : mixed
Return values
mixed —cloneVar()
Converts the variable into a serializable Data instance.
protected
cloneVar(mixed $var) : Data
This array can be displayed in the template using the VarDumper component.
Parameters
- $var : mixed
Return values
Data —getCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner
guessRoute()
protected
guessRoute(Request $request, mixed $controller) : mixed
Parameters
- $request : Request
- $controller : mixed