Skip to content

Commit

Permalink
Merge pull request #49 from moufmouf/10.0
Browse files Browse the repository at this point in the history
Adding return type hinting on class generation
  • Loading branch information
moufmouf committed Aug 3, 2018
2 parents 93f95b0 + 1649c33 commit a4a10d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ public function generate(MoufManager $moufManager, $controllerName, $instanceNam
?>
use Psr\Log\LoggerInterface;
<?php

}
?>
?>
use Psr\Http\Message\ResponseInterface;
<?php if ($injectDaoFactory) {
?>
use <?= $moufManager->getVariable('tdbmDefaultDaoNamespace').'\\Generated\\'.$moufManager->getVariable('tdbmDefaultDaoFactoryName') ?>;
Expand Down Expand Up @@ -345,7 +345,7 @@ public function <?= $action['method'] ?>(<?php
$parametersCode[] = $parameterCode;
}
echo implode(', ', $parametersCode);
?>) {
?>): ResponseInterface {
// TODO: write content of action here

<?php if ($injectTemplate && $action['view'] == 'twig'): ?>
Expand Down

0 comments on commit a4a10d4

Please sign in to comment.