|
@@ 309-311 (lines=3) @@
|
| 306 |
|
foreach ($this->getFiles() as $stub => $file) { |
| 307 |
|
$path = $this->module->getModulePath($this->getName()) . $file; |
| 308 |
|
|
| 309 |
|
if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 310 |
|
$this->filesystem->makeDirectory($dir, 0775, true); |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
$this->filesystem->put($path, $this->getStubContents($stub)); |
| 314 |
|
|
|
@@ 403-405 (lines=3) @@
|
| 400 |
|
{ |
| 401 |
|
$path = $this->module->getModulePath($this->getName()) . 'module.json'; |
| 402 |
|
|
| 403 |
|
if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 404 |
|
$this->filesystem->makeDirectory($dir, 0775, true); |
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
$this->filesystem->put($path, $this->getStubContents('json')); |
| 408 |
|
|