Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraceableValueResolver.php

function TraceableValueResolver::resolve

Overrides ValueResolverInterface::resolve

File

vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php, line 32

Class

TraceableValueResolver
Provides timing information via the stopwatch.

Namespace

Symfony\Component\HttpKernel\Controller\ArgumentResolver

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal