Skip to content

Commit

Permalink
fix(telescope): pass options to driver instantiation
Browse files Browse the repository at this point in the history
Pass configuration options when instantiating the storage driver,
allowing drivers to access their specific configuration during initialization.
  • Loading branch information
huangdijia committed Dec 11, 2024
1 parent debcc32 commit 4d92d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/telescope/src/Storage/EntriesRepositoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d92d7d

Please sign in to comment.