mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-14 07:48:41 +00:00
Reformatting and new directory (capitalization)
This commit is contained in:
parent
70e6c58109
commit
450e296bd3
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user