| @@ 466-477 (lines=12) @@ | ||
| 463 | /** |
|
| 464 | * Generate the module.json file |
|
| 465 | */ |
|
| 466 | private function generateModuleJsonFile() |
|
| 467 | { |
|
| 468 | $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
| 469 | ||
| 470 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 471 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
| 472 | } |
|
| 473 | ||
| 474 | $this->filesystem->put($path, $this->getStubContents('json')); |
|
| 475 | ||
| 476 | $this->console->info("Created : {$path}"); |
|
| 477 | } |
|
| 478 | ||
| 479 | /** |
|
| 480 | * Remove the default service provider that was added in the module.json file |
|
| @@ 147-160 (lines=14) @@ | ||
| 144 | /** |
|
| 145 | * Generate the module.json file |
|
| 146 | */ |
|
| 147 | private function generateModuleJsonFile() |
|
| 148 | { |
|
| 149 | $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
| 150 | ||
| 151 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 152 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
| 153 | } |
|
| 154 | ||
| 155 | $this->filesystem->put($path, $this->getStubContents('json')); |
|
| 156 | ||
| 157 | if (!$this->silentOutput) { |
|
| 158 | $this->console->info("Created : {$path}"); |
|
| 159 | } |
|
| 160 | } |
|
| 161 | } |
|
| 162 | ||