TraceableControllerResolver
in package
implements
ControllerResolverInterface
Tags
Interfaces, Classes and Traits
- ControllerResolverInterface
- A ControllerResolverInterface implementation knows how to determine the controller to execute based on a Request object.
Table of Contents
- $resolver : mixed
- $stopwatch : mixed
- __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
Return values
mixed —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