Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'next-19313/fix-console-setup' into 'trunk'
Browse files Browse the repository at this point in the history
NEXT-19313 - Fix console setup

See merge request shopware/6/product/development!332
  • Loading branch information
shyim committed May 13, 2022
2 parents a6e595c + a5ffdd8 commit 76260b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ if ($_SERVER['COMPOSER_PLUGIN_LOADER'] ?? $_SERVER['DISABLE_EXTENSIONS'] ?? fals
}

$application = new Application($kernel->getKernel());
$kernel->getKernel()->boot();
$application->setName('Shopware');
/** @var string $version */
$version = $kernel->getKernel()->getContainer()->getParameter('kernel.shopware_version');
$application->setVersion($version);
$application->run($input);

0 comments on commit 76260b5

Please sign in to comment.