From 4d92d7d1f7319e70b79ecd0d503647441f46d231 Mon Sep 17 00:00:00 2001 From: Deeka Wong <8337659+huangdijia@users.noreply.github.com> Date: Wed, 11 Dec 2024 11:26:45 +0800 Subject: [PATCH] fix(telescope): pass options to driver instantiation Pass configuration options when instantiating the storage driver, allowing drivers to access their specific configuration during initialization. --- src/telescope/src/Storage/EntriesRepositoryFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telescope/src/Storage/EntriesRepositoryFactory.php b/src/telescope/src/Storage/EntriesRepositoryFactory.php index 8ee5b077d..f3798ba2a 100644 --- a/src/telescope/src/Storage/EntriesRepositoryFactory.php +++ b/src/telescope/src/Storage/EntriesRepositoryFactory.php @@ -39,7 +39,7 @@ public function __invoke(?ContainerInterface $container = null) throw new InvalidArgumentException(sprintf('The driver [%s] has not been registered.', $driver)); } - $driver = make($options['driver']); + $driver = make($options['driver'], $options); if (is_callable($driver)) { $driver = $driver($container, $options);