Skip to content

Commit 0d1344c

Browse files
use container (#57226)
Co-authored-by: htulibacki <[email protected]>
1 parent 8df892f commit 0d1344c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Illuminate/Foundation/ComposerScripts.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Composer\Installer\PackageEvent;
66
use Composer\Script\Event;
7+
use Illuminate\Container\Container;
78
use Illuminate\Contracts\Console\Kernel;
89

910
class ComposerScripts
@@ -67,9 +68,10 @@ public static function prePackageUninstall(PackageEvent $event)
6768
define('LARAVEL_START', microtime(true));
6869
}
6970

70-
/** @var Application $app */
71-
$app = require_once $bootstrapFile;
71+
require_once $bootstrapFile;
7272

73+
/** @var Application $app */
74+
$app = Container::getInstance();
7375
$app->make(Kernel::class)->bootstrap();
7476

7577
/** @var \Composer\DependencyResolver\Operation\UninstallOperation $uninstallOperation */

0 commit comments

Comments
 (0)