| 1 | <?php |
||
| 7 | class ModuleGenerator |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Filesystem |
||
| 11 | */ |
||
| 12 | private $fileSystem; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $path; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $codePool; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $path |
||
| 26 | */ |
||
| 27 | public function __construct($path, Filesystem $fileSystem, $codePool = 'local') |
||
| 33 | |||
| 34 | public function generate($moduleName) |
||
| 54 | |||
| 55 | private function getFilePath($moduleName) |
||
| 59 | |||
| 60 | private function moduleFileExists($moduleName) |
||
| 64 | } |
||
| 65 |