fixed bad merge

This commit is contained in:
Fabien Potencier 2015-09-14 12:33:37 +02:00
parent 95ccd3bb34
commit 7d343e6430

View File

@ -74,11 +74,11 @@ abstract class Bundle extends ContainerAware implements BundleInterface
if (null === $this->extension) {
$extension = $this->createContainerExtension();
if (!$extension instanceof ExtensionInterface) {
throw new \LogicException(sprintf('Extension %s must implement Symfony\Component\DependencyInjection\Extension\ExtensionInterface.', get_class($extension)));
}
if (null !== $extension) {
if (!$extension instanceof ExtensionInterface) {
throw new \LogicException(sprintf('Extension %s must implement Symfony\Component\DependencyInjection\Extension\ExtensionInterface.', get_class($extension)));
}
// check naming convention
$basename = preg_replace('/Bundle$/', '', $this->getName());
$expectedAlias = Container::underscore($basename);