public function init()
 {
     $this->initialize();
     $this->yaf = \ImReworks\Yaf::getInstance();
     $this->log = $this->yaf->log;
     $this->view = $this->getView();
 }
Beispiel #2
0
 function __construct()
 {
     $this->yaf = \ImReworks\Yaf::getInstance();
     $this->db = $this->yaf->db;
     $this->db->connect();
     $this->dbs = new \Swoole\SelectDB($this->db);
 }