Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland committed Oct 11, 2024
1 parent 091c4c6 commit 274d232
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Adapter/ContainerFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ public function getContainer()
return $container;
}

$container = CustomContainerBuilder::getContainer('front', _PS_MODE_DEV_);

if (null !== $container) {
return $container;
try {
$container = CustomContainerBuilder::getContainer('front', _PS_MODE_DEV_);
} catch (\Exception $e) {
throw new ContainerNotFoundException('Kernel Container is not available');
}

throw new ContainerNotFoundException('Kernel Container is not available');
return $container;
}
}

0 comments on commit 274d232

Please sign in to comment.