Exemplo n.º 1
0
 /**
  * Provide a singleton instance to simplify integration. If you prefer
  * to manage the lifecycle of the config object, then consider using
  * "probe()" or "new" instead.
  *
  * @return CA_Config_Stream
  */
 public static function singleton()
 {
     if (!self::$_singleton) {
         global $CA_CONFIG;
         self::$_singleton = self::probe($CA_CONFIG ? $CA_CONFIG : array());
     }
     return self::$_singleton;
 }