mirror of
https://github.com/openlegends/asset-php.git
synced 2025-02-08 04:54:15 +00:00
fix exception namespace
This commit is contained in:
parent
21c36b28f8
commit
9c97d5c0db
@ -15,7 +15,7 @@ class Config
|
||||
|
||||
else
|
||||
{
|
||||
throw new Exception();
|
||||
throw new \Exception();
|
||||
}
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ class Config
|
||||
|
||||
if (!is_dir($location) || !is_readable($location))
|
||||
{
|
||||
throw new Exception();
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
foreach (scandir($location) as $filename)
|
||||
@ -124,17 +124,17 @@ class Config
|
||||
{
|
||||
if (!is_file($location) || !is_readable($location))
|
||||
{
|
||||
throw new Exception();
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
if (!$json = file_get_contents($location))
|
||||
{
|
||||
throw new Exception();
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
if (!$config = json_decode($json))
|
||||
{
|
||||
throw new Exception();
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
return $config;
|
||||
|
Loading…
x
Reference in New Issue
Block a user