/** * This method return a singleton instance of __ActionFactory instance * * @return __ActionFactory a reference to the current __ActionFactory instance */ public static function &getInstance() { if (self::$_instance == null) { self::$_instance = new __ActionControllerResolver(); } return self::$_instance; }