class TraceableValueResolver
Provides timing information via the stopwatch.
@author Iltar van der Berg <kjarli@gmail.com>
Hierarchy
- class \Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver implements \Symfony\Component\HttpKernel\Controller\ValueResolverInterface
Expanded class hierarchy of TraceableValueResolver
1 file declares its use of TraceableValueResolver
- ControllerArgumentValueResolverPass.php in vendor/
symfony/ http-kernel/ DependencyInjection/ ControllerArgumentValueResolverPass.php
File
-
vendor/
symfony/ http-kernel/ Controller/ ArgumentResolver/ TraceableValueResolver.php, line 24
Namespace
Symfony\Component\HttpKernel\Controller\ArgumentResolverView source
final class TraceableValueResolver implements ValueResolverInterface {
public function __construct(ValueResolverInterface $inner, Stopwatch $stopwatch) {
}
public function resolve(Request $request, ArgumentMetadata $argument) : iterable {
$method = $this->inner::class . '::' . __FUNCTION__;
$this->stopwatch
->start($method, 'controller.argument_value_resolver');
yield from $this->inner
->resolve($request, $argument);
$this->stopwatch
->stop($method);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
TraceableValueResolver::resolve | public | function | Returns the possible value(s). | Overrides ValueResolverInterface::resolve |
TraceableValueResolver::__construct | public | function |