From a20743d3b98dba714dca8452604488190f34adac Mon Sep 17 00:00:00 2001 From: William DURAND Date: Wed, 6 Apr 2011 15:00:40 +0200 Subject: [PATCH] Phing output depends of %kernel.debug% --- Command/PhingCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Command/PhingCommand.php b/Command/PhingCommand.php index 0534bfc..f1ce8b8 100644 --- a/Command/PhingCommand.php +++ b/Command/PhingCommand.php @@ -31,6 +31,7 @@ abstract class PhingCommand extends Command protected $additionalPhingArgs = array(); protected $tempSchemas = array(); protected $tmpDir = null; + protected $debug; protected function callPhing($taskName, $properties = array()) { @@ -113,7 +114,7 @@ abstract class PhingCommand extends Command $args[] = '-f'; $args[] = realpath($kernel->getContainer()->getParameter('propel.path').'/generator/build.xml'); - $bufferPhingOutput = false; + $bufferPhingOutput = $kernel->getContainer()->getParameter('kernel.debug'); // Add any arbitrary arguments last foreach ($this->additionalPhingArgs as $arg) {