class TraceableControllerResolver in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php \Symfony\Component\HttpKernel\Controller\TraceableControllerResolver
TraceableControllerResolver.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\HttpKernel\Controller\TraceableControllerResolver implements ControllerResolverInterface
Expanded class hierarchy of TraceableControllerResolver
File
- vendor/
symfony/ http-kernel/ Controller/ TraceableControllerResolver.php, line 22
Namespace
Symfony\Component\HttpKernel\ControllerView source
class TraceableControllerResolver implements ControllerResolverInterface {
private $resolver;
private $stopwatch;
/**
* Constructor.
*
* @param ControllerResolverInterface $resolver A ControllerResolverInterface instance
* @param Stopwatch $stopwatch A Stopwatch instance
*/
public function __construct(ControllerResolverInterface $resolver, Stopwatch $stopwatch) {
$this->resolver = $resolver;
$this->stopwatch = $stopwatch;
}
/**
* {@inheritdoc}
*/
public function getController(Request $request) {
$e = $this->stopwatch
->start('controller.get_callable');
$ret = $this->resolver
->getController($request);
$e
->stop();
return $ret;
}
/**
* {@inheritdoc}
*/
public function getArguments(Request $request, $controller) {
$e = $this->stopwatch
->start('controller.get_arguments');
$ret = $this->resolver
->getArguments($request, $controller);
$e
->stop();
return $ret;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TraceableControllerResolver:: |
private | property | ||
TraceableControllerResolver:: |
private | property | ||
TraceableControllerResolver:: |
public | function |
Returns the arguments to pass to the controller. Overrides ControllerResolverInterface:: |
|
TraceableControllerResolver:: |
public | function |
Returns the Controller instance associated with a Request. Overrides ControllerResolverInterface:: |
|
TraceableControllerResolver:: |
public | function | Constructor. |