Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit afa07c1

Browse files
authored
Merge pull request #1 from driesvints/patch-2
Cleanup ServiceProvider
2 parents 17b2fe5 + 6e51e24 commit afa07c1

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

src/UiServiceProvider.php

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,12 @@ class UiServiceProvider extends ServiceProvider implements DeferrableProvider
1414
*/
1515
public function register()
1616
{
17-
$this->registerCommands();
18-
}
19-
20-
/**
21-
* Boot the package services.
22-
*
23-
* @return void
24-
*/
25-
public function boot()
26-
{
27-
//
28-
}
29-
30-
/**
31-
* Register the console commands.
32-
*
33-
* @return void
34-
*/
35-
protected function registerCommands()
36-
{
37-
if (! $this->app->runningInConsole()) {
38-
return;
17+
if ($this->app->runningInConsole()) {
18+
$this->commands([
19+
AuthCommand::class,
20+
UiCommand::class,
21+
]);
3922
}
40-
41-
$this->commands([
42-
AuthCommand::class,
43-
UiCommand::class,
44-
]);
4523
}
4624

4725
/**

0 commit comments

Comments
 (0)