| @@ 16-22 (lines=7) @@ | ||
| 13 | protected $cachePrefix = 'controller_'; | |
| 14 | protected $stubFilename = 'Controller/Controller.php' ; | |
| 15 | ||
| 16 | public function __construct($scaffolderConfig, $modelData = null, $stubName = null) | |
| 17 | 	{ | |
| 18 | if ($stubName) | |
| 19 | $this->stubFilename = $stubName; | |
| 20 | $this->stubsDirectory = __DIR__ . '/../../../../stubs/Api/'; | |
| 21 | parent::__construct($scaffolderConfig, $modelData); | |
| 22 | } | |
| 23 | ||
| 24 | /** | |
| 25 | * Replace and store the Stub. | |
| @@ 17-23 (lines=7) @@ | ||
| 14 | protected $cachePrefix = 'model_'; | |
| 15 | protected $stubFilename = 'Model/Model.php' ; | |
| 16 | ||
| 17 | public function __construct($scaffolderConfig, $modelData = null, $stubName = null) | |
| 18 | 	{ | |
| 19 | if ($stubName) | |
| 20 | $this->stubFilename = $stubName; | |
| 21 | $this->stubsDirectory = __DIR__ . '/../../../../stubs/Api/'; | |
| 22 | parent::__construct($scaffolderConfig, $modelData); | |
| 23 | } | |
| 24 | ||
| 25 | /** | |
| 26 | * Replace and store the Stub. | |