Skip to content

Commit

Permalink
Fixes bug with composer dumping autoloads (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen-G committed Feb 16, 2017
1 parent a8da706 commit a813e6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PackagerHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use ZipArchive;
use RuntimeException;
use GuzzleHttp\Client;
use Illuminate\Support\Composer;
use Illuminate\Filesystem\Filesystem;

/**
Expand All @@ -29,6 +30,7 @@ class PackagerHelper
public function __construct(Filesystem $files)
{
$this->files = $files;
$this->composer = new Composer($files);
}

/**
Expand Down Expand Up @@ -188,10 +190,11 @@ public function cleanUp($zipFile)

/**
* New composer instance that dumps autoloads.
*
* @return mixed
*/
public function dumpAutoloads()
{
return (app()['composer'])->dumpAutoloads();
return $this->composer->dumpAutoloads();
}
}

0 comments on commit a813e6d

Please sign in to comment.