| 1 | <?php |
||
| 9 | class ArtisanServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | protected $defer = true; |
||
| 12 | |||
| 13 | protected $commands = [ |
||
| 14 | 'Install' => 'command.install', |
||
| 15 | 'ComponentMake' => 'command.component.make', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | public function register() |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Register the given commands. |
||
| 25 | * |
||
| 26 | * @param array $commands |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | protected function registerCommands(array $commands) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Register the command. |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | protected function registerInstallCommand() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Register the command. |
||
| 52 | * |
||
| 53 | * @return void |
||
| 54 | */ |
||
| 55 | protected function registerComponentMakeCommand() |
||
| 61 | |||
| 62 | public function provides() |
||
| 66 | } |
||
| 67 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.