|
@@ 335-342 (lines=8) @@
|
| 332 |
|
$name = $file->getRelativePathname(); |
| 333 |
|
|
| 334 |
|
// Check that we are allowed to overwrite the file if it already exists |
| 335 |
|
if (!is_file($targetDir . $name) || $override === true) { |
| 336 |
|
$fileParts = explode('.', $name); |
| 337 |
|
if (end($fileParts) === 'twig') { |
| 338 |
|
$this->renderTwigFile($name, $targetDir . $name, $parameters, $sourceDir); |
| 339 |
|
} else { |
| 340 |
|
$this->renderFile($name, $targetDir . $name, $parameters); |
| 341 |
|
} |
| 342 |
|
} |
| 343 |
|
} |
| 344 |
|
} |
| 345 |
|
|
|
@@ 367-377 (lines=11) @@
|
| 364 |
|
|
| 365 |
|
$this->setSkeletonDirs(array($sourceDir)); |
| 366 |
|
|
| 367 |
|
if (is_file($sourceDir . $filename)) { |
| 368 |
|
// Check that we are allowed the overwrite the file if it already exists |
| 369 |
|
if (!is_file($targetDir . $targetFilename) || $override === true) { |
| 370 |
|
$fileParts = explode('.', $filename); |
| 371 |
|
if (end($fileParts) === 'twig') { |
| 372 |
|
$this->renderTwigFile($filename, $targetDir . $targetFilename, $parameters, $sourceDir); |
| 373 |
|
} else { |
| 374 |
|
$this->renderFile($filename, $targetDir . $targetFilename, $parameters); |
| 375 |
|
} |
| 376 |
|
} |
| 377 |
|
} |
| 378 |
|
} |
| 379 |
|
|
| 380 |
|
/** |