You are here

protected function ControllerResolver::instantiateController in Zircon Profile 8

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

Returns an instantiated controller.

Parameters

string $class A class name:

Return value

object

2 calls to ControllerResolver::instantiateController()
ControllerResolver::createController in vendor/symfony/http-kernel/Controller/ControllerResolver.php
Returns a callable for the given controller.
ControllerResolver::getController in vendor/symfony/http-kernel/Controller/ControllerResolver.php
This method looks for a '_controller' request attribute that represents the controller name (a string like ClassName::MethodName).

File

vendor/symfony/http-kernel/Controller/ControllerResolver.php, line 160

Class

ControllerResolver
ControllerResolver.

Namespace

Symfony\Component\HttpKernel\Controller

Code

protected function instantiateController($class) {
  return new $class();
}