Пример #1
0
 public function initialize($args)
 {/*{{{*/
     if (isset($args['_master_']) && $args['_master_'])
     {
         BeanFinder::get('dbexecuter')->mustUseMaster();
     }
     $configs = $this->prepareConfigs();
     BeanFinder::register('configs', $configs);
     BeanFinder::register('idgenter', IDGenterClient::getInstance());
 }/*}}}*/
Пример #2
0
 private static function initForService($path, $encoding)
 {
     /*{{{*/
     self::init($path, $encoding);
     BeanFinder::register('idgenter', IDGenterClient::getInstance());
 }
Пример #3
0
 public function __construct()
 {/*{{{*/
     $this->m = IDGenterClient::getInstance();;
 }/*}}}*/