public function TestHttpKernel::getArguments

Same name in this branch
  1. 9.x drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\TestHttpKernel::getArguments()
  2. 9.x drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel::getArguments()

Returns the arguments to pass to the controller.

@api

Parameters

Request $request A Request instance:

mixed $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

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/TestHttpKernel.php, line 32

Class

TestHttpKernel

Namespace

Symfony\Component\HttpKernel\Tests

Code

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