You are here

public function ControllerReference::__construct in Zircon Profile 8.0

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

Constructor.

Parameters

string $controller The controller name:

array $attributes An array of parameters to add to the Request attributes:

array $query An array of parameters to add to the Request query string:

File

vendor/symfony/http-kernel/Controller/ControllerReference.php, line 40

Class

ControllerReference
Acts as a marker and a data holder for a Controller.

Namespace

Symfony\Component\HttpKernel\Controller

Code

public function __construct($controller, array $attributes = array(), array $query = array()) {
  $this->controller = $controller;
  $this->attributes = $attributes;
  $this->query = $query;
}