/** * Makes sure Walleye is handled as a singleton. This function will give you * the instance of Walleye. * * @return Walleye */ public static function getInstance() { if (!self::$me) { self::$me = new Walleye(); } return self::$me; }
/** * Makes sure Walleye is handled as a singleton. This function will give you * the instance of Walleye. * * @param array $appOptions * @param array $routes * @param array $dbOptions * @return Walleye */ public static function getInstance($appOptions = array(), $routes = array(), $dbOptions = array()) { if (!self::$me) { self::$me = new Walleye($appOptions, $routes, $dbOptions); } return self::$me; }