1 | <?php |
||
8 | class ServiceProvider extends BaseServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Addon environment. |
||
12 | * |
||
13 | * @var \Jumilla\Addomnipot\Laravel\Environment |
||
14 | */ |
||
15 | protected $addonEnvironment; |
||
16 | |||
17 | /** |
||
18 | * Register the service provider. |
||
19 | */ |
||
20 | 1 | public function register() |
|
49 | |||
50 | /** |
||
51 | * Register the cache related console commands. |
||
52 | */ |
||
53 | 1 | public function registerCommands() |
|
54 | { |
||
55 | $this->app->singleton('command.addon.list', function ($app) { |
||
56 | return new Console\AddonListCommand(); |
||
57 | 1 | }); |
|
58 | |||
59 | $this->app->singleton('command.addon.status', function ($app) { |
||
60 | return new Console\AddonStatusCommand(); |
||
61 | 1 | }); |
|
62 | |||
63 | $this->app->singleton('command.addon.make', function ($app) { |
||
64 | return new Console\AddonMakeCommand(); |
||
65 | 1 | }); |
|
66 | |||
67 | $this->app->singleton('command.addon.name', function ($app) { |
||
68 | return new Console\AddonNameCommand(); |
||
69 | 1 | }); |
|
70 | |||
71 | 1 | $this->app->singleton('command.addon.remove', function ($app) { |
|
72 | return new Console\AddonRemoveCommand(); |
||
73 | 1 | }); |
|
74 | |||
75 | 1 | $this->commands([ |
|
76 | 1 | 'command.addon.list', |
|
77 | 1 | 'command.addon.status', |
|
78 | 1 | 'command.addon.make', |
|
79 | 1 | 'command.addon.name', |
|
80 | 1 | 'command.addon.remove', |
|
81 | 1 | ]); |
|
82 | 1 | } |
|
83 | |||
84 | /** |
||
85 | */ |
||
86 | 1 | protected function registerClassResolvers() |
|
94 | |||
95 | 1 | public function boot() |
|
101 | } |
||
102 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.