ControllerReference
in package
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.
Tags
Table of Contents
- $attributes : mixed
- $controller : mixed
- $query : mixed
- __construct() : mixed
Properties
$attributes
public
mixed
$attributes
= []
$controller
public
mixed
$controller
$query
public
mixed
$query
= []
Methods
__construct()
public
__construct(string $controller[, array<string|int, mixed> $attributes = [] ][, array<string|int, mixed> $query = [] ]) : mixed
Parameters
- $controller : string
-
The controller name
- $attributes : array<string|int, mixed> = []
-
An array of parameters to add to the Request attributes
- $query : array<string|int, mixed> = []
-
An array of parameters to add to the Request query string