You are here

public function TraceableControllerResolver::getArguments in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php \Symfony\Component\HttpKernel\Controller\TraceableControllerResolver::getArguments()

Returns the arguments to pass to the controller.

Parameters

Request $request A Request instance:

callable $controller A PHP callable:

Return value

array An array of arguments to pass to the controller

Throws

\RuntimeException When value for argument given is not provided

Overrides ControllerResolverInterface::getArguments

File

vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php, line 56

Class

TraceableControllerResolver
TraceableControllerResolver.

Namespace

Symfony\Component\HttpKernel\Controller

Code

public function getArguments(Request $request, $controller) {
  $e = $this->stopwatch
    ->start('controller.get_arguments');
  $ret = $this->resolver
    ->getArguments($request, $controller);
  $e
    ->stop();
  return $ret;
}