|
@@ 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 |
|
|
|
@@ 467-469 (lines=3) @@
|
| 464 |
|
{ |
| 465 |
|
$path = $this->module->getModulePath($this->getName()) . 'module.json'; |
| 466 |
|
|
| 467 |
|
if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 468 |
|
$this->filesystem->makeDirectory($dir, 0775, true); |
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
$this->filesystem->put($path, $this->getStubContents('json')); |
| 472 |
|
|