Skip to content

Commit 97e4750

Browse files
committed
Remove "boot" Method from ServiceProvider and Move its Functionality to "register"
1 parent b57d53b commit 97e4750

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/DatabaseRepositoryServiceProvider.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,17 @@ class DatabaseRepositoryServiceProvider extends ServiceProvider
2727
/**
2828
* Bootstrap the application events.
2929
*/
30-
public function boot()
30+
// public function boot()
31+
// {
32+
//
33+
//
34+
// $this->register();
35+
// }
36+
37+
/**
38+
* Register the service provider.
39+
*/
40+
public function register(): void
3141
{
3242
if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
3343
$this->publishes([
@@ -37,14 +47,6 @@ public function boot()
3747
$this->app->configure('repository');
3848
}
3949

40-
$this->register();
41-
}
42-
43-
/**
44-
* Register the service provider.
45-
*/
46-
public function register(): void
47-
{
4850
$this->registerCommand();
4951
}
5052

0 commit comments

Comments
 (0)