From 6c377e60f8674d3275af64f0210244452db08511 Mon Sep 17 00:00:00 2001 From: Rein Van Oyen Date: Mon, 4 May 2020 14:44:27 +0200 Subject: [PATCH] Changed ConfigServiceProvider to lazy --- src/Config/ConfigServiceProvider.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Config/ConfigServiceProvider.php b/src/Config/ConfigServiceProvider.php index 8a2d0ed..6cdcae0 100644 --- a/src/Config/ConfigServiceProvider.php +++ b/src/Config/ConfigServiceProvider.php @@ -11,6 +11,8 @@ class ConfigServiceProvider extends ServiceProvider { + protected $isLazy = true; + public function boot(ContainerInterface $app) { // Register Config command @@ -48,4 +50,9 @@ public function register(ContainerInterface $app) { $app->singleton(RepositoryInterface::class, Repository::class); } -} \ No newline at end of file + + public function provides(): array + { + return [RepositoryInterface::class,]; + } +}