diff --git a/src/Core/Provider/ConsoleProvider.php b/src/Core/Provider/ConsoleProvider.php index 2c7a3225..39695fab 100644 --- a/src/Core/Provider/ConsoleProvider.php +++ b/src/Core/Provider/ConsoleProvider.php @@ -40,6 +40,10 @@ public function __construct(protected ConsoleApplication $app) */ public function register(Container $container): void { + if (ConsoleApplication::class !== $this->app::class) { + $container->alias(ConsoleApplication::class, $this->app::class); + } + $container->mergeParameters( 'commands', require __DIR__ . '/../../../resources/registry/commands.php'