1 | <?php |
||
17 | class FortDeferredServiceProvider extends ServiceProvider |
||
18 | { |
||
19 | /** |
||
20 | * The commands to be registered. |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $commands = [ |
||
25 | SeedCommand::class => 'command.rinvex.fort.seed', |
||
26 | MigrateCommand::class => 'command.rinvex.fort.migrate', |
||
27 | PublishCommand::class => 'command.rinvex.fort.publish', |
||
28 | RollbackCommand::class => 'command.rinvex.fort.rollback', |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * Indicates if loading of the provider is deferred. |
||
33 | * |
||
34 | * @var bool |
||
35 | */ |
||
36 | protected $defer = true; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function register() |
||
50 | |||
51 | /** |
||
52 | * Bootstrap the application events. |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | public function boot() |
||
61 | |||
62 | /** |
||
63 | * Register the password broker. |
||
64 | * |
||
65 | * @return void |
||
66 | */ |
||
67 | protected function registerPasswordBroker() |
||
77 | |||
78 | /** |
||
79 | * Register the verification broker. |
||
80 | * |
||
81 | * @return void |
||
82 | */ |
||
83 | protected function registerVerificationBroker() |
||
93 | |||
94 | /** |
||
95 | * Register the blade extensions. |
||
96 | * |
||
97 | * @return void |
||
98 | */ |
||
99 | protected function registerBladeExtensions() |
||
136 | |||
137 | /** |
||
138 | * Get the services provided by the provider. |
||
139 | * |
||
140 | * @return array |
||
|
|||
141 | */ |
||
142 | public function provides() |
||
150 | |||
151 | /** |
||
152 | * Register console commands. |
||
153 | * |
||
154 | * @return void |
||
155 | */ |
||
156 | protected function registerCommands() |
||
174 | } |
||
175 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.