1 | <?php |
||
23 | class FoundationServiceProvider extends ServiceProvider |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Indicates if loading of the provider is deferred. |
||
28 | * |
||
29 | * @var bool |
||
30 | */ |
||
31 | protected $defer = false; |
||
32 | |||
33 | /** |
||
34 | * The commands to be registered. |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $commands = [ |
||
39 | 'command.clear' => ClearCommand::class, |
||
40 | 'command.compile' => CompileCommand::class, |
||
41 | 'command.db.clear' => DbClear::class, |
||
42 | 'command.db.dump' => DbDump::class, |
||
43 | 'command.db.restore' => DbRestore::class, |
||
44 | 'command.log.clear' => LogClear::class, |
||
45 | ]; |
||
46 | |||
47 | /** |
||
48 | * The commands to be registered. |
||
49 | * |
||
50 | * @var array |
||
51 | */ |
||
52 | protected $devCommands = [ |
||
53 | |||
54 | ]; |
||
55 | |||
56 | /** |
||
57 | * Register the service provider. |
||
58 | * |
||
59 | * @return void |
||
60 | */ |
||
61 | public function register() |
||
67 | |||
68 | /** |
||
69 | * Bootstrap the application services. |
||
70 | * |
||
71 | * @return void |
||
72 | */ |
||
73 | public function boot() |
||
77 | |||
78 | protected function detectScope() |
||
93 | |||
94 | /** |
||
95 | * Register the given commands. |
||
96 | * |
||
97 | * @param array $commands |
||
98 | * @return void |
||
99 | */ |
||
100 | protected function registerCommands(array $commands) |
||
110 | |||
111 | /** |
||
112 | * Get the services provided by the provider. |
||
113 | * |
||
114 | * @return array |
||
115 | */ |
||
116 | public function provides() |
||
124 | |||
125 | } |
||
126 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.