| @@ 105-111 (lines=7) @@ | ||
| 102 | $fc = new FileCopyHelper(); |
|
| 103 | ||
| 104 | // Config |
|
| 105 | foreach (glob($this->getSourceDir() . '/build/templates/app/modules/config/*.xml.tmpl') as $file) { |
|
| 106 | $fc->copy($file, $projectLocation . '/app/modules/' . $module . '/config/' . basename($file, '.tmpl'), |
|
| 107 | function ($data, $params) { |
|
| 108 | return $this->moduleTokenReplacer($data, $params); |
|
| 109 | }, $defaultParams); |
|
| 110 | } |
|
| 111 | ||
| 112 | // Lib |
|
| 113 | @mkdir($projectLocation . '/app/modules/' . $module . '/lib/controller', 0755, true); |
|
| 114 | foreach (glob($this->getSourceDir() . '/build/templates/app/modules/lib/controller/*.tmpl') as $file) { |
|
| @@ 179-185 (lines=7) @@ | ||
| 176 | ||
| 177 | // Config |
|
| 178 | @mkdir($projectLocation . '/app/config', 0755, true); |
|
| 179 | foreach (glob($this->getSourceDir() . '/build/templates/app/config/*.xml.tmpl') as $file) { |
|
| 180 | $fc->copy($file, $projectLocation . '/app/config/' . basename($file, '.tmpl'), |
|
| 181 | function ($data, $params) { |
|
| 182 | return $this->projectTokenReplacer($data, $params); |
|
| 183 | }, $defaultParams); |
|
| 184 | } |
|
| 185 | ||
| 186 | // Copy the Master and exception templates |
|
| 187 | @mkdir($projectLocation . '/app/templates', 0755, true); |
|
| 188 | @copy($this->getSourceDir() . '/build/templates/defaults/app/templates/Master.php.tmpl', |
|