From ed62026cc2b294b3d7ec9d2a8331fd958c00462a Mon Sep 17 00:00:00 2001 From: Richard Browne Date: Wed, 4 Nov 2020 16:00:21 +0000 Subject: [PATCH] Making sure that any custom controllers are included too. --- src/Generators/Scaffold/RoutesGenerator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Generators/Scaffold/RoutesGenerator.php b/src/Generators/Scaffold/RoutesGenerator.php index d8de71c..a5d119f 100755 --- a/src/Generators/Scaffold/RoutesGenerator.php +++ b/src/Generators/Scaffold/RoutesGenerator.php @@ -260,6 +260,7 @@ private function buildText(array $routes, int $indent = 0, string $parent = '') '$ITERATION_CUSTOM_NAME$' => $custom['name'], '$INDENT$' => infy_tabs($tabs), ]; + $this->classNames[$custom['controller'].'Controller'] = $custom['controller'].'Controller'; $templateString .= get_artomator_template('scaffold.routes.prefixed.custom'); $templateString = fill_template($vars, $templateString); }