1 | <?php |
||
13 | abstract class RouteServiceProvider extends AbstractServiceProvider |
||
14 | { |
||
15 | protected $provides = [ |
||
16 | 'request', |
||
17 | 'response', |
||
18 | 'emitter', |
||
19 | 'router', |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * Define routes. |
||
24 | * |
||
25 | * @param RouteCollection $routes |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | abstract public function routes(RouteCollection $routes): void; |
||
30 | |||
31 | /** |
||
32 | * Use the register method to register items with the container via the |
||
33 | * protected $this->container property or the `getContainer` method |
||
34 | * from the ContainerAwareTrait. |
||
35 | * |
||
36 | * @return void |
||
37 | * @throws \Psr\Container\NotFoundExceptionInterface |
||
38 | * @throws \Psr\Container\ContainerExceptionInterface |
||
39 | * @throws \InvalidArgumentException |
||
40 | */ |
||
41 | 1 | public function register(): void |
|
57 | } |
||
58 |