예제 #1
0
 function __construct()
 {
     $this->db = Factory::create();
 }
예제 #2
0
 public function onWorkerStart()
 {
     $this->redis = DBFactory::getInstance('Chat');
 }
예제 #3
0
 public function __construct($server)
 {
     $this->server = $server;
     $this->redis = DBFactory::getInstance('Chat');
 }
예제 #4
0
파일: Chat.php 프로젝트: hytzxd/swoole-doc
 public function setServer($server)
 {
     $this->server = $server;
     $this->params = $server->getParams();
     $this->redis = DBFactory::getInstance('Chat');
 }
예제 #5
0
 public function _initDb(\Yaf\Dispatcher $dispatcher)
 {
     \Db\Factory::create();
 }