| 1 | <?php |
||
| 9 | class ArtisanServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Indicates if loading of the provider is deferred. |
||
| 13 | * |
||
| 14 | * @var bool |
||
| 15 | */ |
||
| 16 | protected $defer = true; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The commands to be registered. |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $commands = [ |
||
| 24 | 'MakeAdmin' => 'command.makeadmin', |
||
| 25 | 'MakeUser' => 'command.makeuser', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Register the service provider. |
||
| 30 | */ |
||
| 31 | public function register() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Register the command. |
||
| 44 | * |
||
| 45 | * @param $command |
||
| 46 | * |
||
| 47 | * @return |
||
| 48 | */ |
||
| 49 | protected function registerMakeAdminCommand($command) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Register the command. |
||
| 58 | * |
||
| 59 | * @param $command |
||
| 60 | * |
||
| 61 | * @return |
||
| 62 | */ |
||
| 63 | protected function registerMakeUserCommand($command) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Get the services provided by the provider. |
||
| 72 | * |
||
| 73 | * @return array |
||
| 74 | */ |
||
| 75 | public function provides() |
||
| 79 | } |
||
| 80 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.