Change file copy to use copy() method

This commit is contained in:
Damian Mooyman 2016-09-13 17:05:08 +12:00
parent c6e9375b8c
commit 5f82035219
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class RecipeInstaller extends LibraryInstaller {
}
$this->io->write("Installing recipe <info>$recipe</info> file <info>$relativePath</info>");
$this->filesystem->ensureDirectoryExists(dirname($destination));
file_put_contents($destination, file_get_contents($path));
copy($path, $destination);
}
}