Fix route name generation in CollectionCRUD maker

This commit is contained in:
Timothy Warren 2024-03-21 15:48:39 -04:00
parent dc236c1d8d
commit 5e0e5576d1
1 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,8 @@ final class MakeCollectionCrud extends AbstractMaker {
$entityTwigVarPlural = Str::asTwigVariable($entityVarPlural);
$entityTwigVarSingular = Str::asTwigVariable($entityVarSingular);
$routeName = Str::asRouteName($controllerClassDetails->getRelativeNameWithoutSuffix());
// $routeName = Str::asRouteName($controllerClassDetails->getShortName());
$routeName = Str::asTwigVariable($entityVarSingular);
$templatesPath = Str::asFilePath($controllerClassDetails->getRelativeNameWithoutSuffix());
$useStatements = new UseStatementGenerator([