src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php
public function copyFiles($sourceDir, $targetDir, $override = false)
    {
        // Make sure the source -and target dir contain a trailing slash
        $sourceDir = rtrim($sourceDir, '/') . '/';
        $targetDir = rtrim($targetDir, '/') . '/';

        $this->filesystem->mirror($sourceDir, $targetDir, null, array('override' => $override));
    }
public function copyFiles($sourceDir, $targetDir, $override = false)
    {
        // Make sure the source -and target dir contain a trailing slash
        $sourceDir = rtrim($sourceDir, '/') . '/';
        $targetDir = rtrim($targetDir, '/') . '/';

        $this->filesystem->mirror($sourceDir, $targetDir, null, array('override' => $override));
    }
public function copyFiles ( $ sourceDir , $ targetDir , $ override = false ) { // Make sure the source -and target dir contain a trailing slash $ sourceDir = rtrim ( $ sourceDir , '/' ) . '/' ; $ targetDir = rtrim ( $ targetDir , '/' ) . '/' ; $ this -> filesystem -> mirror ( $ sourceDir , $ targetDir , null , array ( 'override' => $ override ) ) ; }
Copy all files in the source directory to the target directory.

@param string $sourceDir The source directory where we need to look in
@param string $targetDir The target directory where we need to copy the files too
@param bool   $override  Whether to override an existing file or not
Copy all files in the source directory to the target directory .