🔧
This commit is contained in:
12
vendor/symfony/routing/Attribute/Route.php
vendored
12
vendor/symfony/routing/Attribute/Route.php
vendored
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user