File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 5
5
use Carbon \Carbon ;
6
6
use Illuminate \Database \Migrations \Migrator ;
7
7
use Illuminate \Filesystem \Filesystem ;
8
+ use Illuminate \Foundation \Application ;
8
9
use Symfony \Component \Console \Input \ArrayInput ;
9
10
10
11
class Hooks
11
12
{
12
13
protected static $ remote = 'https://larapack.io ' ;
13
14
15
+ protected $ app ;
14
16
protected $ filesystem ;
15
17
protected $ migrator ;
16
18
protected $ hooks ;
@@ -33,6 +35,7 @@ class Hooks
33
35
34
36
public function __construct (Filesystem $ filesystem , Migrator $ migrator )
35
37
{
38
+ $ this ->app = Application::getInstance ();
36
39
$ this ->filesystem = $ filesystem ;
37
40
$ this ->migrator = $ migrator ;
38
41
@@ -861,6 +864,8 @@ public function runComposer($input)
861
864
862
865
$ this ->composerOutput [] = $ output ;
863
866
867
+ Application::setInstance ($ this ->app );
868
+
864
869
return $ output ->output ();
865
870
}
866
871
You can’t perform that action at this time.
0 commit comments