Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/75'
Browse files Browse the repository at this point in the history
Close #75
  • Loading branch information
weierophinney committed Oct 30, 2013
2 parents a7ab109 + e446e9e commit 8dec807
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ZFTool/Controller/CreateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ public function methodAction()
$classReflection = $fileReflection->getClass($class);
$classGenerator = Generator\ClassGenerator::fromReflection($classReflection);
$classGenerator->addUse('Zend\Mvc\Controller\AbstractActionController')
->addUse('Zend\View\Model\ViewModel')
->setExtendedClass('AbstractActionController');
if ($classGenerator->hasMethod($action . 'Action')) {
return $this->sendError(
Expand Down

0 comments on commit 8dec807

Please sign in to comment.