Skip to content

Commit

Permalink
Pass only used variables to template
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrack authored and jrushlow committed May 9, 2022
1 parent a748362 commit 67ff18e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Maker/MakeCrud.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
'tests/Controller/'.$testClassDetails->getShortName().'.php',
'crud/test/Test.tpl.php',
[
'bounded_full_class_name' => $entityClassDetails->getFullName(),
'bounded_class_name' => $entityClassDetails->getShortName(),
'entity_class_name' => $entityClassDetails->getShortName(),
'route_path' => Str::asRoutePath($controllerClassDetails->getRelativeNameWithoutSuffix()),
'route_name' => $routeName,
'class_name' => Str::getShortClassName($testClassDetails->getFullName()),
Expand Down

0 comments on commit 67ff18e

Please sign in to comment.