Commit e0c84a94 authored by Taylor Otwell's avatar Taylor Otwell

tweaking zip provider.

parent 62ee8250
...@@ -22,9 +22,9 @@ abstract class Provider { ...@@ -22,9 +22,9 @@ abstract class Provider {
protected function zipball($bundle, $url) protected function zipball($bundle, $url)
{ {
// When installing a bundle from a Zip archive, we'll first clone // When installing a bundle from a Zip archive, we'll first clone
// down the bundle zip into the bundles "working" directory. // down the bundle zip into the bundles "working" directory so
// This gives us a spot to all of our bundle extrations. // we have a spot to do all of our bundle extrations.
$target = path('storage').'work/bundles/bundle.zip'; $target = path('storage').'work/laravel-bundle.zip';
File::put($target, file_get_contents($url)); File::put($target, file_get_contents($url));
...@@ -36,7 +36,7 @@ abstract class Provider { ...@@ -36,7 +36,7 @@ abstract class Provider {
// into the working directory. By convention, we expect the // into the working directory. By convention, we expect the
// archive to contain one root directory, and all of the // archive to contain one root directory, and all of the
// bundle contents should be stored in that directory. // bundle contents should be stored in that directory.
$zip->extractTo(path('storage').'work/bundles'); $zip->extractTo(path('storage').'work');
$latest = File::latest(dirname($target)); $latest = File::latest(dirname($target));
......
*
!.gitignore
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment