Skip to content

Commit

Permalink
Changed ConfigServiceProvider to lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
reinvanoyen authored May 4, 2020
1 parent 1564e35 commit 6c377e6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Config/ConfigServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

class ConfigServiceProvider extends ServiceProvider
{
protected $isLazy = true;

public function boot(ContainerInterface $app)
{
// Register Config command
Expand Down Expand Up @@ -48,4 +50,9 @@ public function register(ContainerInterface $app)
{
$app->singleton(RepositoryInterface::class, Repository::class);
}
}

public function provides(): array
{
return [RepositoryInterface::class,];
}
}

0 comments on commit 6c377e6

Please sign in to comment.