Example #1
0
 /**
  * 构造函数
  * @param $response Swoole_http_server->response        	
  * @return NULL
  */
 public function __construct()
 {
     if (!$this->cache) {
         $this->cache = new \Core\Cache\RedisCache();
     }
     if (!$this->cookie) {
         $this->cookie = \Core\Cookie::getInstance();
     }
 }