function __construct(Swoole $swoole) { parent::__construct($swoole); if (!$this->generator) { $this->generator = new \Swoole\Generate\Generator($this->db_name); } }
function __construct(\Swoole $swoole) { parent::__construct($swoole); $this->is_ajax = true; }