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. *