Skip to content

Commit

Permalink
Merge branch '1.1'
Browse files Browse the repository at this point in the history
* 1.1:
  Make build passing again
  HOTFIX: Do not require NelmioAliceBundle in shared kernel
  • Loading branch information
pamil committed Apr 10, 2018
2 parents 1bb2d30 + 2ce672c commit da9ca37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/AppKernel.php
Expand Up @@ -30,6 +30,7 @@ public function registerBundles(): array

if (in_array($this->getEnvironment(), ['dev', 'test', 'test_cached'], true)) {
$bundles[] = new \Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle();
$bundles[] = new \Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle();
}

return array_merge(parent::registerBundles(), $bundles);
Expand Down
6 changes: 5 additions & 1 deletion app/TestAppKernel.php
Expand Up @@ -52,7 +52,11 @@ protected function cleanupContainer(ContainerInterface $container): void

$services = $containerServicesPropertyReflection->getValue($container) ?: [];
foreach ($services as $serviceId => $service) {
if (in_array($serviceId, $this->getServicesToIgnoreDuringContainerCleanup())) {
if (null === $service) {
continue;
}

if (in_array($serviceId, $this->getServicesToIgnoreDuringContainerCleanup(), true)) {
continue;
}

Expand Down
1 change: 0 additions & 1 deletion src/Sylius/Bundle/CoreBundle/Application/Kernel.php
Expand Up @@ -100,7 +100,6 @@ public function registerBundles(): array
];

if (in_array($this->getEnvironment(), ['dev', 'test', 'test_cached'], true)) {
$bundles[] = new \Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle();
$bundles[] = new \Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new \Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
Expand Down

0 comments on commit da9ca37

Please sign in to comment.