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