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
+9-7
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,6 @@ class Route
20
20
{
21
21
private ?string$path = null;
22
22
privatearray$localizedPaths = [];
23
-
privatearray$methods;
24
-
privatearray$schemes;
25
23
26
24
/**
27
25
* @param string|array<string,string>|null $path The route path (i.e. "/user/login")
@@ -39,14 +37,14 @@ class Route
39
37
* @param bool|null $utf8 Whether the route accepts UTF-8 in its parameters
40
38
* @param bool|null $stateless Whether the route is defined as stateless or stateful, @see https://symfony.com/doc/current/routing.html#stateless-routes
41
39
* @param string|null $env The env in which the route is defined (i.e. "dev", "test", "prod")
40
+
* @param string[] $aliases The list of aliases for this route
42
41
*/
43
42
publicfunction__construct(
44
43
string|array|null$path = null,
45
44
private ?string$name = null,
46
45
privatearray$requirements = [],
47
46
privatearray$options = [],
48
47
privatearray$defaults = [],
49
-
privatearray$alias = [],
50
48
private ?string$host = null,
51
49
array|string$methods = [],
52
50
array|string$schemes = [],
@@ -57,6 +55,7 @@ public function __construct(
57
55
?bool$utf8 = null,
58
56
?bool$stateless = null,
59
57
private ?string$env = null,
58
+
privatearray$aliases = [],
60
59
) {
61
60
if (\is_array($path)) {
62
61
$this->localizedPaths = $path;
@@ -65,7 +64,7 @@ public function __construct(
65
64
}
66
65
$this->setMethods($methods);
67
66
$this->setSchemes($schemes);
68
-
$this->setAliases($alias);
67
+
$this->setAliases($aliases);
69
68
if (null !== $locale) {
70
69
$this->defaults['_locale'] = $locale;
71
70
}
@@ -82,6 +81,9 @@ public function __construct(
82
81
$this->defaults['_stateless'] = $stateless;
83
82
}
84
83
}
84
+
privatearray$methods;
85
+
86
+
privatearray$schemes;
85
87
86
88
publicfunctionsetPath(string$path): void
87
89
{
@@ -205,12 +207,12 @@ public function getEnv(): ?string
0 commit comments