1 | <?php |
||
10 | class ArtisanServiceProvider extends ServiceProvider |
||
11 | { |
||
12 | protected $defer = true; |
||
13 | |||
14 | protected $commands = [ |
||
15 | 'Install' => 'command.install', |
||
16 | 'ComponentMake' => 'command.component.make', |
||
17 | 'ObserverMake' => 'command.observer.make', |
||
18 | ]; |
||
19 | |||
20 | 48 | public function register() |
|
24 | |||
25 | /** |
||
26 | * Register the given commands. |
||
27 | * |
||
28 | * @param array $commands |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | 48 | protected function registerCommands(array $commands) |
|
40 | |||
41 | /** |
||
42 | * Register the command. |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | protected function registerInstallCommand() |
||
52 | |||
53 | /** |
||
54 | * Register the command. |
||
55 | * |
||
56 | * @return void |
||
57 | */ |
||
58 | protected function registerComponentMakeCommand() |
||
64 | |||
65 | /** |
||
66 | * Register the command. |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | protected function registerObserverMakeCommand() |
||
76 | |||
77 | 3 | public function provides() |
|
81 | } |
||
82 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.