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