Removed propel.runtime.logging for Propel2' configuration file, since its configuration tree is a bit different.

This commit is contained in:
Marc J. Schmidt 2014-12-01 15:20:38 +01:00
parent 491ed27582
commit 76da37b710

View file

@ -213,8 +213,14 @@ abstract class AbstractCommand extends ContainerAwareCommand
*/
protected function createPropelConfigurationFile($file)
{
$propelConfig = $this->getContainer()->getParameter('propel.configuration');
//needed because because Propel2's configuration tree is a bit different
//propel.runtime.logging is PropelBundle feature only.
unset($propelConfig['runtime']['logging']);
$config = array(
'propel' => $this->getContainer()->getParameter('propel.configuration')
'propel' => $propelConfig
);
file_put_contents($file, json_encode($config, JSON_PRETTY_PRINT));