1 | <?php |
||
6 | class DispatcherServiceProvider extends AbstractServiceProvider |
||
7 | { |
||
8 | /** |
||
9 | * The provides array is a way to let the container |
||
10 | * know that a service is provided by this service |
||
11 | * provider. Every service that is registered via |
||
12 | * this service provider must have an alias added |
||
13 | * to this array or it will be ignored. |
||
14 | * |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $provides = [ |
||
18 | 'Spekkionu\DomainDispatcher\Dispatcher', |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * This is where the magic happens, within the method you can |
||
23 | * access the container and register or retrieve anything |
||
24 | * that you need to, but remember, every alias registered |
||
25 | * within this method must be declared in the `$provides` array. |
||
26 | */ |
||
27 | public function register() |
||
33 | } |
||
34 |