Example #1
0
 public function __construct()
 {
     if (Arch_Yaml::isExist('arch', 'id')) {
         $this->opt = Arch_Yaml::get('arch', 'id');
     } else {
         $this->opt = Core_Conf::getConf('arch:id');
     }
     $this->db = Blue_DB::instance($this->opt['db']);
 }
Example #2
0
 private static function getConf()
 {
     if (Arch_Yaml::isExist('blue')) {
         $ini = Arch_Yaml::get('blue', 'passport');
     } else {
         $ini = Core_Conf::getConf('blue:passport');
     }
     if (empty($ini)) {
         throw new Blue_Exception_Fatal("配置blue.ini=>passport不存在");
     }
     return $ini;
 }