diff --git a/src/Extension/Extension.php b/src/Extension/Extension.php index 4c01152af..3e774295d 100644 --- a/src/Extension/Extension.php +++ b/src/Extension/Extension.php @@ -27,9 +27,9 @@ public function getPath($fullPath = false) * @param bool $fullPath * @return string */ - public function getControllerDirectory($fullPath = false) + public function getControllerPath($fullPath = false) { - return $this->getSourcePath($fullPath) . '/Controller/'; + return $this->getSourcePath($fullPath) . '/Controller'; } /** diff --git a/src/Generator/ControllerGenerator.php b/src/Generator/ControllerGenerator.php index 0736b0168..3c925ba05 100644 --- a/src/Generator/ControllerGenerator.php +++ b/src/Generator/ControllerGenerator.php @@ -37,7 +37,7 @@ public function generate($module, $class, $routes, $test, $services) $this->renderFile( 'module/src/Controller/controller.php.twig', - $this->extensionManager->getModule($module)->getControllerDirectory().'/'.$class.'.php', + $this->extensionManager->getModule($module)->getControllerPath().'/'.$class.'Controller.php', $parameters );