This commit is contained in:
2025-04-07 12:16:11 +01:00
parent ce8b201a1c
commit e15a80163b
62 changed files with 149 additions and 131 deletions

View File

@@ -41,12 +41,12 @@ class Service extends Model
public function driver(
?string $defaultPassword = null,
): Driver
{
): Driver {
$class = config("keystone.drivers.{$this->driver_name}");
if (!class_exists($class)) {
if (! class_exists($class)) {
throw new \Exception("Driver class {$class} not found");
}
return new $class($this->container_name, $this->container_id, defaultPassword: $defaultPassword);
}
}