Skip to content

Commit

Permalink
Merge pull request #22 from langleyfoxall/hotfix-listener-namespace
Browse files Browse the repository at this point in the history
Update ModuleTemplate.php
  • Loading branch information
dextermb authored Sep 3, 2018
2 parents 9dd3491 + ea5893b commit 33d0787
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Helpers/ModuleTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ public function generate()

continue;
}

if (str_contains($filename, 'Listener')) {
$this->updateNamespace($path, $namespace, '\Listeners');

continue;
}

if (str_contains($filename, 'Config.php')) {
$this->updateConfig($path);
Expand Down Expand Up @@ -201,4 +207,4 @@ protected function updateVariableNamespace(string $path, string $namespace = nul

return $this;
}
}
}

0 comments on commit 33d0787

Please sign in to comment.