Fix GeneralException namespace used in DbDriver
This commit is contained in:
@ -1,4 +1,6 @@
|
|||||||
<?php namespace Majestic\Model;
|
<?php namespace Majestic\Model;
|
||||||
|
use Majestic\Exception\GeneralException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @copyright NetMonsters <team@netmonsters.ru>
|
* @copyright NetMonsters <team@netmonsters.ru>
|
||||||
* @link http://netmonsters.ru
|
* @link http://netmonsters.ru
|
||||||
@ -36,7 +38,7 @@ abstract class DbDriver
|
|||||||
$required = array('database', 'username', 'password', 'hostname');
|
$required = array('database', 'username', 'password', 'hostname');
|
||||||
foreach ($required as $option) {
|
foreach ($required as $option) {
|
||||||
if (!isset($config[$option])) {
|
if (!isset($config[$option])) {
|
||||||
throw new \GeneralException('Configuration must have a "' . $option . '".');
|
throw new GeneralException('Configuration must have a "' . $option . '".');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user