Commit ac0af13a authored by Nicolas Widart's avatar Nicolas Widart

Back to dynamic module name

parent dd37d1a1
...@@ -228,9 +228,11 @@ class EntityGenerator extends Generator ...@@ -228,9 +228,11 @@ class EntityGenerator extends Generator
private function generateSidebarExtender($entities) private function generateSidebarExtender($entities)
{ {
if (count($entities) > 0) { if (count($entities) > 0) {
$firstModuleName = $entities[0];
return $this->writeFile( return $this->writeFile(
$this->getModulesPath('Sidebar/SidebarExtender'), $this->getModulesPath('Sidebar/SidebarExtender'),
$this->getContentForStub('sidebar-extender.stub', 'abc') $this->getContentForStub('sidebar-extender.stub', $firstModuleName)
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment