@@ -7,18 +7,18 @@ |
||
7 | 7 | #[Attribute] |
8 | 8 | class RouteAttribute{ |
9 | 9 | public function __construct |
10 | - ( |
|
11 | - private string $uri, |
|
12 | - private array $methods, |
|
13 | - private string $name, |
|
14 | - private ?array $where, |
|
15 | - private ?string|Closure $after, |
|
16 | - private ?string|Closure $before, |
|
17 | - private ?array $attributes, |
|
18 | - private ?array $middleware |
|
19 | - ) |
|
20 | - { |
|
21 | - echo 1; |
|
10 | + ( |
|
11 | + private string $uri, |
|
12 | + private array $methods, |
|
13 | + private string $name, |
|
14 | + private ?array $where, |
|
15 | + private ?string|Closure $after, |
|
16 | + private ?string|Closure $before, |
|
17 | + private ?array $attributes, |
|
18 | + private ?array $middleware |
|
19 | + ) |
|
20 | + { |
|
21 | + echo 1; |
|
22 | 22 | |
23 | - } |
|
23 | + } |
|
24 | 24 | } |
25 | 25 | \ No newline at end of file |
@@ -5,15 +5,14 @@ |
||
5 | 5 | use Attribute; |
6 | 6 | |
7 | 7 | #[Attribute] |
8 | -class RouteAttribute{ |
|
9 | - public function __construct |
|
10 | - ( |
|
8 | +class RouteAttribute { |
|
9 | + public function __construct( |
|
11 | 10 | private string $uri, |
12 | 11 | private array $methods, |
13 | 12 | private string $name, |
14 | 13 | private ?array $where, |
15 | - private ?string|Closure $after, |
|
16 | - private ?string|Closure $before, |
|
14 | + private ?string | Closure $after, |
|
15 | + private ?string | Closure $before, |
|
17 | 16 | private ?array $attributes, |
18 | 17 | private ?array $middleware |
19 | 18 | ) |