public function getRunner(Route $route)
    {
        if (isset($route->controller)) {
            $class = Runner\Controller::class;
        } elseif (isset($route->fn)) {
            $class = Runner\Callback::class;
        } elseif (isset($route->file)) {
            $class = Runner\PhpScript::class;
        } else {
            trigger_error("Route has neither 'controller', 'fn' or 'file' defined", E_USER_NOTICE);
            return null;
        }

        return new $class();
    }