TraceableControllerResolver
in package
implements
ControllerResolverInterface
Tags
Table of Contents
Interfaces
- ControllerResolverInterface
- A ControllerResolverInterface implementation knows how to determine the controller to execute based on a Request object.
Properties
- $resolver : mixed
- $stopwatch : mixed
Methods
- __construct() : mixed
- getController() : callable|false
- Returns the Controller instance associated with a Request.
Properties
$resolver
private
mixed
$resolver
$stopwatch
private
mixed
$stopwatch
Methods
__construct()
public
__construct(ControllerResolverInterface $resolver, Stopwatch $stopwatch) : mixed
Parameters
- $resolver : ControllerResolverInterface
- $stopwatch : Stopwatch
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