1 | <?php |
||
6 | class SystemServiceProvider 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 | 'log', |
||
19 | 'db', |
||
20 | 'config', |
||
21 | 'curl', |
||
22 | 'settings', |
||
23 | 'permissions', |
||
24 | 'serverConfig', |
||
25 | 'users', |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * This is where the magic happens, within the method you can |
||
30 | * access the container and register or retrieve anything |
||
31 | * that you need to, but remember, every alias registered |
||
32 | * within this method must be declared in the `$provides` array. |
||
33 | */ |
||
34 | public function register() |
||
49 | } |
||
50 |