Example #1
0
 /**
  * 构造函数
  */
 public function __construct()
 {
     $this->request = new \Lime\Request();
     $this->router = \Lime\Lime::app('router');
     $this->detectSite();
     $this->detectBase();
 }
Example #2
0
 /**
  * 添加或者获取配置
  *
  * @access public
  * @param  string|array $name
  * @param  mixed        $values
  * @return \Lime\Option
  */
 function configure($key = null, $value = null)
 {
     return call_user_func_array([\Lime\Lime::app(), 'configure'], func_get_args());
 }