Reformatting and new directory (capitalization)

This commit is contained in:
Dennis Eichhorn 2016-05-06 18:24:44 +02:00
parent 70e6c58109
commit 450e296bd3

View File

@ -121,12 +121,18 @@ class Navigation
* *
* @return \Modules\Navigation\Models\Navigation * @return \Modules\Navigation\Models\Navigation
* *
* @throws \Exception
*
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public static function getInstance(RequestAbstract $request = null, Pool $dbPool = null) public static function getInstance(RequestAbstract $request = null, Pool $dbPool = null)
{ {
if (!isset(self::$instance)) { if (!isset(self::$instance)) {
if(!isset($request) || !isset($dbPool)) {
throw new \Exception('Invalid parameters');
}
self::$instance = new self($request, $dbPool); self::$instance = new self($request, $dbPool);
} }