From f69130c02c2dd65e9d140448381339179d7051be Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sun, 2 Nov 2025 23:36:53 +0200 Subject: [PATCH] instantiate binding, when used --- bootstrap/container.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/container.php b/bootstrap/container.php index 4ece193..08c211b 100644 --- a/bootstrap/container.php +++ b/bootstrap/container.php @@ -3,9 +3,10 @@ use DI\Container; use FreightQuote\User\FlatFileUserRepository; use FreightQuote\User\UserRepository; +use DI; $container = new Container([ - UserRepository::class => FlatFileUserRepository::class, + UserRepository::class => DI\create(FlatFileUserRepository::class), ]); return $container;