You are here

public function TestHttpKernel::getArguments in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-kernel/Tests/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\TestHttpKernel::getArguments()
  2. 8 vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel::getArguments()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel::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/Tests/HttpCache/TestHttpKernel.php, line 64

Class

TestHttpKernel

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function getArguments(Request $request, $controller) {
  return array(
    $request,
  );
}