TraceableControllerResolver
in package
implements
ControllerResolverInterface, ArgumentResolverInterface
Tags
Interfaces, Classes and Traits
- ControllerResolverInterface
- A ControllerResolverInterface implementation knows how to determine the controller to execute based on a Request object.
- ArgumentResolverInterface
- An ArgumentResolverInterface instance knows how to determine the arguments for a specific action.
Table of Contents
- $argumentResolver : mixed
- $resolver : mixed
- $stopwatch : mixed
- __construct() : mixed
- getArguments() : array<string|int, mixed>
- Returns the arguments to pass to the controller.
- getController() : callable|false
- Returns the Controller instance associated with a Request.
Properties
$argumentResolver
private
mixed
$argumentResolver
$resolver
private
mixed
$resolver
$stopwatch
private
mixed
$stopwatch
Methods
__construct()
public
__construct(ControllerResolverInterface $resolver, Stopwatch $stopwatch[, ArgumentResolverInterface $argumentResolver = null ]) : mixed
Parameters
- $resolver : ControllerResolverInterface
- $stopwatch : Stopwatch
- $argumentResolver : ArgumentResolverInterface = null
Return values
mixed —getArguments()
Returns the arguments to pass to the controller.
public
getArguments(Request $request, mixed $controller) : array<string|int, mixed>
Parameters
- $request : Request
-
A Request instance
- $controller : mixed
-
A PHP callable
Tags
Return values
array<string|int, mixed> —An array of arguments to pass to the controller
getController()
Returns the Controller instance associated with a Request.
public
getController(Request $request) : callable|false
Parameters
- $request : Request
Return values
callable|false —A PHP callable representing the Controller, or false if this resolver is not able to determine the controller