| 1 | <?php |
||
| 14 | final class Component extends AbstractComponent |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var LoaderChain |
||
| 18 | */ |
||
| 19 | private $loader; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $implementation |
||
| 23 | * @param RouteLoader $loader |
||
| 24 | */ |
||
| 25 | 7 | protected function __construct(string $implementation, RouteLoader $loader = null) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | 6 | public function resolveFastRoute() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param \string[] ...$paths |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | 2 | public function files(string ...$paths) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @param RouteBinder[] ...$binders |
||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | 2 | public function binders(RouteBinder ...$binders) |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @param callable $callback |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | 1 | public function resolveCustom(callable $callback) : array |
|
| 75 | } |
||
| 76 |