You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Attribute/Route.php
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -39,14 +39,14 @@ class Route
39
39
* @param bool|null $utf8 Whether the route accepts UTF-8 in its parameters
40
40
* @param bool|null $stateless Whether the route is defined as stateless or stateful, @see https://symfony.com/doc/current/routing.html#stateless-routes
41
41
* @param string|null $env The env in which the route is defined (i.e. "dev", "test", "prod")
42
+
* @param string[] $aliases The list of aliases for this route
42
43
*/
43
44
publicfunction__construct(
44
45
string|array|null$path = null,
45
46
private ?string$name = null,
46
47
privatearray$requirements = [],
47
48
privatearray$options = [],
48
49
privatearray$defaults = [],
49
-
privatearray$alias = [],
50
50
private ?string$host = null,
51
51
array|string$methods = [],
52
52
array|string$schemes = [],
@@ -57,6 +57,7 @@ public function __construct(
57
57
?bool$utf8 = null,
58
58
?bool$stateless = null,
59
59
private ?string$env = null,
60
+
privatearray$aliases = [],
60
61
) {
61
62
if (\is_array($path)) {
62
63
$this->localizedPaths = $path;
@@ -65,7 +66,8 @@ public function __construct(
65
66
}
66
67
$this->setMethods($methods);
67
68
$this->setSchemes($schemes);
68
-
$this->setAliases($alias);
69
+
$this->setAliases($aliases);
70
+
69
71
if (null !== $locale) {
70
72
$this->defaults['_locale'] = $locale;
71
73
}
@@ -205,12 +207,12 @@ public function getEnv(): ?string
0 commit comments