class ControllerReference
Acts as a marker and a data holder for a Controller.
Some methods in Symfony accept both a URI (as a string) or a controller as an argument. In the latter case, instead of passing an array representing the controller, you can use an instance of this class.
$controller | |||
$attributes | |||
$query |
__construct(string $controller, array $attributes = array(), array $query = array()) Constructor. |
Constructor.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/HttpKernel/Controller/ControllerReference.html