blob: 9d54ff001612f8213a03e93864303f1bd0107927 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
declare(strict_types=1);
namespace BrettParson\MiniRoute\Routing;
/**
* A compiled route: one controller method plus its method, path, and
* middleware.
*/
final class RouteDef
{
/**
* @param list<string> $middleware Middleware class names, outermost first.
*/
public function __construct(
public readonly string $method,
public readonly string $path,
public readonly string $controllerClass,
public readonly string $controllerMethod,
public readonly array $middleware = [],
) {
}
}
|