|
@@ 312-314 (lines=3) @@
|
| 309 |
|
foreach ($this->getFiles() as $stub => $file) { |
| 310 |
|
$path = $this->module->getModulePath($this->getName()) . $file; |
| 311 |
|
|
| 312 |
|
if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 313 |
|
$this->filesystem->makeDirectory($dir, 0775, true); |
| 314 |
|
} |
| 315 |
|
|
| 316 |
|
$this->filesystem->put($path, $this->getStubContents($stub)); |
| 317 |
|
|
|
@@ 410-412 (lines=3) @@
|
| 407 |
|
{ |
| 408 |
|
$path = $this->module->getModulePath($this->getName()) . 'module.json'; |
| 409 |
|
|
| 410 |
|
if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 411 |
|
$this->filesystem->makeDirectory($dir, 0775, true); |
| 412 |
|
} |
| 413 |
|
|
| 414 |
|
$this->filesystem->put($path, $this->getStubContents('json')); |
| 415 |
|
|