Skip to content

Commit 8de41bb

Browse files
authored
Merge pull request #33 from larapack/fix-container
Fix container
2 parents c60bf1c + 93e7e18 commit 8de41bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Hooks.php

+5
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
use Carbon\Carbon;
66
use Illuminate\Database\Migrations\Migrator;
77
use Illuminate\Filesystem\Filesystem;
8+
use Illuminate\Foundation\Application;
89
use Symfony\Component\Console\Input\ArrayInput;
910

1011
class Hooks
1112
{
1213
protected static $remote = 'https://larapack.io';
1314

15+
protected $app;
1416
protected $filesystem;
1517
protected $migrator;
1618
protected $hooks;
@@ -33,6 +35,7 @@ class Hooks
3335

3436
public function __construct(Filesystem $filesystem, Migrator $migrator)
3537
{
38+
$this->app = Application::getInstance();
3639
$this->filesystem = $filesystem;
3740
$this->migrator = $migrator;
3841

@@ -861,6 +864,8 @@ public function runComposer($input)
861864

862865
$this->composerOutput[] = $output;
863866

867+
Application::setInstance($this->app);
868+
864869
return $output->output();
865870
}
866871

0 commit comments

Comments
 (0)