Example #1
0
File: App.php Project: GDdark/cici
 /**
  * 设置当前请求的调度信息
  * @access public
  * @param array|string  $dispatch 调度信息
  * @param string        $type 调度类型
  * @param array         $params 参数
  * @return void
  */
 public static function dispatch($dispatch, $type = 'module', $params = [])
 {
     self::$dispatch = ['type' => $type, $type => $dispatch, 'params' => $params];
 }
Example #2
0
 public static function dispatch($dispatch)
 {
     self::$dispatch = $dispatch;
 }
Example #3
0
 /**
  * 设置当前请求的调度信息
  * @access public
  * @param array|string  $dispatch 调度信息
  * @param string        $type 调度类型
  * @return void
  */
 public static function dispatch($dispatch, $type = 'module')
 {
     self::$dispatch = ['type' => $type, $type => $dispatch];
 }