Exemplo n.º 1
0
 public function initiate()
 {
     parent::initiate();
     $root = \Cute\Web\Router::getCurrent();
     $this->installRef($root, ['dispatch', 'abort', 'redirect']);
     $this->installRef(\Cute\Web\Router::$current, ['route', 'expose']);
     $this->install('\\Cute\\Web\\Input', ['getClientIP', 'input' => 'getInstance']);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * 初始化环境
  */
 public function initiate()
 {
     parent::initiate();
     return $this;
 }