diff --git a/src/Listener/RegisterConnectionListener.php b/src/Listener/RegisterConnectionListener.php index dd76011..d2e354b 100644 --- a/src/Listener/RegisterConnectionListener.php +++ b/src/Listener/RegisterConnectionListener.php @@ -54,7 +54,7 @@ protected function createPersistentPdoResolver($connection, $config) return function () use ($config, $connection) { /** @var \Hyperf\Contract\ContainerInterface $container */ $container = ApplicationContext::getContainer(); - $key = "sqlite.presistent.pdo.{$config['name']}"; + $key = "sqlite.persistent.pdo.{$config['name']}"; if (! $container->has($key)) { $container->set($key, call_user_func($connection));