generator = new LaravelGenerator(); } public function createRoute(string $httpMethod, string $path, string $controllerMethod) { return new Route([$httpMethod], $path, ['uses' => TestController::class . "@$controllerMethod"]); } }