From 76da37b7100edaed17a74f2f811be692744f736f Mon Sep 17 00:00:00 2001 From: "Marc J. Schmidt" Date: Mon, 1 Dec 2014 15:20:38 +0100 Subject: [PATCH] Removed `propel.runtime.logging` for Propel2' configuration file, since its configuration tree is a bit different. --- Command/AbstractCommand.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Command/AbstractCommand.php b/Command/AbstractCommand.php index b2e660d..8804281 100644 --- a/Command/AbstractCommand.php +++ b/Command/AbstractCommand.php @@ -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));