mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Throw exception for invalid storage
This commit is contained in:
parent
61d1353023
commit
a7ed339bfb
|
|
@ -71,9 +71,14 @@ final class Storage
|
|||
$stg = $env;
|
||||
$env = ucfirst(strtolower($env));
|
||||
$env = __NAMESPACE__ . '\\' . $env . '\\' . $env . 'Storage';
|
||||
$env = $env::getInstance();
|
||||
|
||||
self::$registered[$stg] = $env;
|
||||
try {
|
||||
$env = $env::getInstance();
|
||||
|
||||
self::$registered[$stg] = $env;
|
||||
} catch(\Exception $e) {
|
||||
throw new \Exception();
|
||||
}
|
||||
}
|
||||
|
||||
return $env;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user