Check if Propel is initialized or not
This commit is contained in:
parent
88fa406aa2
commit
18d5591bc7
|
@ -15,6 +15,7 @@ class PropelBundle extends Bundle
|
|||
set_include_path($this->container->getParameter('propel.phing_path').'/classes'.PATH_SEPARATOR.get_include_path());
|
||||
}
|
||||
|
||||
if (!\Propel::isInit()) {
|
||||
\Propel::setConfiguration($this->container->get('propel.configuration'));
|
||||
|
||||
if ($this->container->getParameter('propel.logging')) {
|
||||
|
@ -23,6 +24,7 @@ class PropelBundle extends Bundle
|
|||
|
||||
\Propel::initialize();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
|
Loading…
Reference in a new issue