@@ 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 | ||
@@ 457-459 (lines=3) @@ | ||
454 | { |
|
455 | $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
456 | ||
457 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
458 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
459 | } |
|
460 | ||
461 | $this->filesystem->put($path, $this->getStubContents('json')); |
|
462 |