This commit is contained in:
2025-05-12 14:25:25 +02:00
parent ab2db755ef
commit 9e378ca2b7
2719 changed files with 46505 additions and 60181 deletions

View File

@@ -20,8 +20,6 @@ namespace Symfony\Component\Routing\Attribute;
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Alexander M. Turek <me@derrabus.de>
*
* @final since Symfony 6.4
*/
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class Route
@@ -37,7 +35,7 @@ class Route
* @param string[]|string $schemes
*/
public function __construct(
string|array $path = null,
string|array|null $path = null,
private ?string $name = null,
private array $requirements = [],
private array $options = [],
@@ -47,10 +45,10 @@ class Route
array|string $schemes = [],
private ?string $condition = null,
private ?int $priority = null,
string $locale = null,
string $format = null,
bool $utf8 = null,
bool $stateless = null,
?string $locale = null,
?string $format = null,
?bool $utf8 = null,
?bool $stateless = null,
private ?string $env = null
) {
if (\is_array($path)) {