public static function createFromApplication(Application $app)
    {
        $dispatch = new static($app->request, $app->resolver, $app->config);
        $dispatch->setApplication($app);
        return $dispatch;
    }