|
@@ 359-361 (lines=3) @@
|
| 356 |
|
foreach ($this->getFiles() as $stub => $file) { |
| 357 |
|
$path = $this->module->getModulePath($this->getName()) . $file; |
| 358 |
|
|
| 359 |
|
if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 360 |
|
$this->filesystem->makeDirectory($dir, 0775, true); |
| 361 |
|
} |
| 362 |
|
|
| 363 |
|
$this->filesystem->put($path, $this->getStubContents($stub)); |
| 364 |
|
|
|
@@ 462-464 (lines=3) @@
|
| 459 |
|
{ |
| 460 |
|
$path = $this->module->getModulePath($this->getName()) . 'module.json'; |
| 461 |
|
|
| 462 |
|
if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 463 |
|
$this->filesystem->makeDirectory($dir, 0775, true); |
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
$this->filesystem->put($path, $this->getStubContents('json')); |
| 467 |
|
|