think\App::dispatch PHP Method

dispatch() public static method

设置当前请求的调度信息
public static dispatch ( array | string $dispatch, string $type = 'module' ) : void
$dispatch array | string 调度信息
$type string 调度类型
return void
    public static function dispatch($dispatch, $type = 'module')
    {
        self::$dispatch = ['type' => $type, $type => $dispatch];
    }