@@ 305-307 (lines=3) @@ | ||
302 | foreach ($this->getFiles() as $stub => $file) { |
|
303 | $path = $this->module->getModulePath($this->getName()) . $file; |
|
304 | ||
305 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
306 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
307 | } |
|
308 | ||
309 | $this->filesystem->put($path, $this->getStubContents($stub)); |
|
310 | ||
@@ 398-400 (lines=3) @@ | ||
395 | { |
|
396 | $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
397 | ||
398 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
399 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
400 | } |
|
401 | ||
402 | $this->filesystem->put($path, $this->getStubContents('json')); |
|
403 |