/** * Singleton pattern * * @return FRSLog */ public static function instance() { if (!isset(self::$_instance)) { $c = __CLASS__; self::$_instance = new $c(); } return self::$_instance; }
/** * Returns an instance of EventManager * * @return EventManager */ function getEventManager() { $em = EventManager::instance(); FRSLog::instance(); return $em; }