Commit 681f5773 authored by Nicolas Widart's avatar Nicolas Widart

Use the first module name as the group name as default

parent b0c84a20
......@@ -228,11 +228,11 @@ class EntityGenerator extends Generator
private function generateSidebarExtender($entities)
{
if (count($entities) > 0) {
$firstModuleName = $entities[0];
$firstName = $entities[0];
return $this->writeFile(
$this->getModulesPath('Sidebar/SidebarExtender'),
$this->getContentForStub('sidebar-extender.stub', $firstModuleName)
$this->getContentForStub('sidebar-extender.stub', $firstName)
);
}
......
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