Esempio n. 1
0
 function __construct()
 {
     $this->db = Factory::create();
 }
Esempio n. 2
0
 public function onWorkerStart()
 {
     $this->redis = DBFactory::getInstance('Chat');
 }
Esempio n. 3
0
 public function __construct($server)
 {
     $this->server = $server;
     $this->redis = DBFactory::getInstance('Chat');
 }
Esempio n. 4
0
 public function setServer($server)
 {
     $this->server = $server;
     $this->params = $server->getParams();
     $this->redis = DBFactory::getInstance('Chat');
 }
Esempio n. 5
0
 public function _initDb(\Yaf\Dispatcher $dispatcher)
 {
     \Db\Factory::create();
 }