Skip to content

Commit

Permalink
Fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
omides327 committed Aug 20, 2022
1 parent ae7f729 commit d60a96b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Console/Generators/MakeModuleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,13 @@ protected function generateModule()
if ($file->getFilename() === 'ServiceProvider.php') {
$filePath = str_replace('ServiceProvider', $this->container['provider'], $filePath);
} else if($file->getFilename() === 'ModuleController.php') {
$filePath = str_replace('ModuleController', $this->container['provider'], $filePath);
$filePath = str_replace('ModuleController', $this->container['controller'], $filePath);
} else if($file->getFilename() === "Entity.php") {
$filePath = str_replace('Entity', $this->container['entity'], $filePath);
} else if($file->getFilename() === "migration.php") {
$filePath = str_replace('migration.php', $this->container['migration'] . ".php" , $filePath);
} else if($file->getFilename() === "config.php") {
$filePath = str_replace('config.php', $this->container['slug'] . ".php" , $filePath);
}

$dir = dirname($filePath);
Expand Down
Empty file removed structure/normal/config/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions structure/normal/config/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [

];

0 comments on commit d60a96b

Please sign in to comment.