updated bootstrap.php
This commit is contained in:
parent
025e142dd4
commit
dacb25f13a
@ -705,11 +705,11 @@ abstract class Kernel implements KernelInterface
|
|||||||
$this->bundleMap = array();
|
$this->bundleMap = array();
|
||||||
foreach ($this->registerBundles() as $bundle) {
|
foreach ($this->registerBundles() as $bundle) {
|
||||||
$name = $bundle->getName();
|
$name = $bundle->getName();
|
||||||
$this->bundles[$name] = $bundle;
|
if (isset($this->bundles[$name])) {
|
||||||
if (!isset($this->bundleMap[$name])) {
|
throw new \LogicException(sprintf('Trying to register two bundles with the same name "%s"', $name));
|
||||||
$this->bundleMap[$name] = array();
|
|
||||||
}
|
}
|
||||||
$this->bundleMap[$name][] = $bundle;
|
$this->bundles[$name] = $bundle;
|
||||||
|
$this->bundleMap[$name] = array($bundle);
|
||||||
}
|
}
|
||||||
$extended = array();
|
$extended = array();
|
||||||
foreach ($this->bundles as $name => $bundle) {
|
foreach ($this->bundles as $name => $bundle) {
|
||||||
|
Reference in New Issue
Block a user