|
@@ 339-341 (lines=3) @@
|
| 336 |
|
|
| 337 |
|
$path = $this->module->getModulePath($this->getName()) . $file; |
| 338 |
|
|
| 339 |
|
if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 340 |
|
$this->filesystem->makeDirectory($dir, 0775, true); |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
$this->filesystem->put($path, $this->getStubContents($stub)); |
| 344 |
|
|
|
@@ 496-498 (lines=3) @@
|
| 493 |
|
{ |
| 494 |
|
$path = $this->module->getModulePath($this->getName()) . 'module.json'; |
| 495 |
|
|
| 496 |
|
if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 497 |
|
$this->filesystem->makeDirectory($dir, 0775, true); |
| 498 |
|
} |
| 499 |
|
|
| 500 |
|
$this->filesystem->put($path, $this->getStubContents('json')); |
| 501 |
|
|