Skip to content

Commit

Permalink
NEXT-22513 - Improve compatibility with composer install --no-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrzefski authored and keulinho committed Jul 26, 2022
1 parent 50a05b4 commit 633643e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,29 @@
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
Enqueue\Bundle\EnqueueBundle::class => ['all' => true],
Enqueue\MessengerAdapter\Bundle\EnqueueAdapterBundle::class => ['all' => true],
Shopware\Core\Framework\Framework::class => ['all' => true],
Shopware\Core\System\System::class => ['all' => true],
Shopware\Core\Content\Content::class => ['all' => true],
Shopware\Core\Checkout\Checkout::class => ['all' => true],
Shopware\Core\Profiling\Profiling::class => ['dev' => true],
Shopware\Administration\Administration::class => ['all' => true],
Shopware\Storefront\Storefront::class => ['all' => true],
Shopware\Elasticsearch\Elasticsearch::class => ['all' => true],
];

if (\class_exists('Shopware\Core\Maintenance\Maintenance')) {
if (\class_exists(Shopware\Core\Maintenance\Maintenance::class)) {
$bundles[Shopware\Core\Maintenance\Maintenance::class] = ['all' => true];
}

if (\class_exists(Shopware\Core\DevOps\DevOps::class)) {
$bundles[Shopware\Core\DevOps\DevOps::class] = ['e2e' => true];
}

if (\class_exists(Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class)) {
$bundles[Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class] = ['dev' => true, 'test' => true];
$bundles[Shopware\Core\Profiling\Profiling::class] = ['dev' => true];
}

return $bundles;

0 comments on commit 633643e

Please sign in to comment.