From c80e156f96b43ec7415592bfd1c61985e7695ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Simon?= Date: Tue, 5 Jun 2012 05:22:08 +0200 Subject: [PATCH] [console] Added style stack getter in formatter. --- .../Component/Console/Formatter/OutputFormatter.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatter.php b/src/Symfony/Component/Console/Formatter/OutputFormatter.php index 554fd6ca44..237d004771 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatter.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatter.php @@ -138,6 +138,14 @@ class OutputFormatter implements OutputFormatterInterface return preg_replace_callback(self::FORMAT_PATTERN, array($this, 'replaceStyle'), $message); } + /** + * @return OutputFormatterStyleStack + */ + public function getStyleStack() + { + return $this->styleStack; + } + /** * Replaces style of the output. *