Load logging if asked

This commit is contained in:
William DURAND 2011-04-05 21:21:05 +02:00
parent 0b9da32426
commit da35ed55f4

View file

@ -16,7 +16,11 @@ class PropelBundle extends Bundle
}
\Propel::setConfiguration($this->container->get('propel.configuration'));
\Propel::setLogger($this->container->get('propel.logger'));
if ($this->container->getParameter('propel.logging')) {
\Propel::setLogger($this->container->get('propel.logger'));
}
\Propel::initialize();
}