tweaking provider.

This commit is contained in:
Taylor Otwell 2012-02-03 13:43:43 -06:00
parent 46bf67aeed
commit e370772cf9
1 changed files with 3 additions and 3 deletions

View File

@ -38,16 +38,16 @@ protected function zipball($bundle, $url)
// bundle contents should be stored in that directory. // bundle contents should be stored in that directory.
$zip->extractTo(path('storage').'work'); $zip->extractTo(path('storage').'work');
$latest = File::latest(dirname($target)); $latest = File::latest(dirname($target))->getRealPath();
@chmod($latest->getRealPath(), 0777); @chmod($latest, 0777);
// Once we have the latest modified directory, we should be // Once we have the latest modified directory, we should be
// able to move its contents over into the bundles folder // able to move its contents over into the bundles folder
// so the bundle will be usable by the develoepr. // so the bundle will be usable by the develoepr.
$path = $this->path($bundle); $path = $this->path($bundle);
File::mvdir($latest->getRealPath(), path('bundle').$path); File::mvdir($latest, path('bundle').$path);
@unlink($target); @unlink($target);
} }