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