Browse Source

Fix GeneralException namespace used in DbDriver

laravel5
Alexander Demidov 5 years ago
parent
commit
89ececaef2
  1. 4
      Model/DbDriver.php

4
Model/DbDriver.php

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

Loading…
Cancel
Save