@@ 344-346 (lines=3) @@ | ||
341 | ||
342 | $path = $this->module->getModulePath($this->getName()) . $file; |
|
343 | ||
344 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
345 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
346 | } |
|
347 | ||
348 | $this->filesystem->put($path, $this->getStubContents($stub)); |
|
349 | ||
@@ 501-503 (lines=3) @@ | ||
498 | { |
|
499 | $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
500 | ||
501 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
502 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
503 | } |
|
504 | ||
505 | $this->filesystem->put($path, $this->getStubContents('json')); |
|
506 |