From 5f8203521976f7c75c7d5840d9cf5926b54593d0 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 13 Sep 2016 17:05:08 +1200 Subject: [PATCH] Change file copy to use copy() method --- src/RecipeInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RecipeInstaller.php b/src/RecipeInstaller.php index 148b609..df909e1 100644 --- a/src/RecipeInstaller.php +++ b/src/RecipeInstaller.php @@ -59,7 +59,7 @@ class RecipeInstaller extends LibraryInstaller { } $this->io->write("Installing recipe $recipe file $relativePath"); $this->filesystem->ensureDirectoryExists(dirname($destination)); - file_put_contents($destination, file_get_contents($path)); + copy($path, $destination); } }