protected function copyFiles()
    {
        $skeletonFinder = new SkeletonFinder($this->lookupPaths);
        $sourcePath = $skeletonFinder->findByName($this->skeletonName)->getRealpath();

        $finder = $this->getFinderForFilesToCopy($sourcePath);

        foreach ($finder as $file) {
            $targetFilePath = $this->targetPath.DIRECTORY_SEPARATOR.$file->getRelativePathname();
            $targetFilePath = $this->twigStringRenderer->renderToString($targetFilePath, $this->data);

            $this->fs->copy($file->getRealpath(), $targetFilePath, $this->overwriteEnabled);

            $msg = '[copy] '.$file->getRealpath().' => '.$targetFilePath;

            if ($this->reportingEnabled) {
                $this->report[] = $msg;
            }
        }
    }
protected function copyFiles()
    {
        $skeletonFinder = new SkeletonFinder($this->lookupPaths);
        $sourcePath = $skeletonFinder->findByName($this->skeletonName)->getRealpath();

        $finder = $this->getFinderForFilesToCopy($sourcePath);

        foreach ($finder as $file) {
            $targetFilePath = $this->targetPath.DIRECTORY_SEPARATOR.$file->getRelativePathname();
            $targetFilePath = $this->twigStringRenderer->renderToString($targetFilePath, $this->data);

            $this->fs->copy($file->getRealpath(), $targetFilePath, $this->overwriteEnabled);

            $msg = '[copy] '.$file->getRealpath().' => '.$targetFilePath;

            if ($this->reportingEnabled) {
                $this->report[] = $msg;
            }
        }
    }
protected function copyFiles ( ) { $ skeletonFinder = new SkeletonFinder ( $ this -> lookupPaths ) ; $ sourcePath = $ skeletonFinder -> findByName ( $ this -> skeletonName ) -> getRealpath ( ) ; $ finder = $ this -> getFinderForFilesToCopy ( $ sourcePath ) ; foreach ( $ finder as $ file ) { $ targetFilePath = $ this -> targetPath . DIRECTORY_SEPARATOR . $ file -> getRelativePathname ( ) ; $ targetFilePath = $ this -> twigStringRenderer -> renderToString ( $ targetFilePath , $ this -> data ) ; $ this -> fs -> copy ( $ file -> getRealpath ( ) , $ targetFilePath , $ this -> overwriteEnabled ) ; $ msg = '[copy] ' . $ file -> getRealpath ( ) . ' => ' . $ targetFilePath ; if ( $ this -> reportingEnabled ) { $ this -> report [ ] = $ msg ; } } }
Copies all files from the source location to the target location.
Copies all files from the source location to the target location .