Total Complexity | 5 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Changes | 7 | ||
Bugs | 5 | Features | 0 |
1 | <?php |
||
16 | class GeniusServiceProvider extends PackageServiceProvider |
||
17 | { |
||
18 | /* ----------------------------------------------------------------- |
||
19 | | Properties |
||
20 | | ----------------------------------------------------------------- |
||
21 | */ |
||
22 | |||
23 | /** |
||
24 | * Package name. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $package = 'genius'; |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | */ |
||
33 | public function boot() |
||
34 | { |
||
35 | parent::boot(); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get the services provided by the provider. |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | public function provides() |
||
44 | { |
||
45 | return [ |
||
46 | GeniusInterface::class |
||
47 | ]; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * |
||
52 | */ |
||
53 | public function register() |
||
54 | { |
||
55 | parent::register(); |
||
56 | $this->registerConfig(); |
||
57 | $this->registerGeniusService(); |
||
58 | $this->registerAliases(); |
||
59 | $this->registerConsoleServiceProvider(CommandsServiceProvider::class); |
||
60 | } |
||
61 | |||
62 | |||
63 | /* ----------------------------------------------------------------- |
||
64 | | Other Methods |
||
65 | | ----------------------------------------------------------------- |
||
66 | */ |
||
67 | |||
68 | /** |
||
69 | * Register the log data class. |
||
70 | */ |
||
71 | private function registerGeniusService() |
||
82 | } |
||
83 | } |
||
84 | } |
||
85 | |||
86 |