diff --git a/src/PackagerHelper.php b/src/PackagerHelper.php index 8d2e4db..be2fb95 100644 --- a/src/PackagerHelper.php +++ b/src/PackagerHelper.php @@ -5,6 +5,7 @@ use ZipArchive; use RuntimeException; use GuzzleHttp\Client; +use Illuminate\Support\Composer; use Illuminate\Filesystem\Filesystem; /** @@ -29,6 +30,7 @@ class PackagerHelper public function __construct(Filesystem $files) { $this->files = $files; + $this->composer = new Composer($files); } /** @@ -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(); } }