[console] Added style stack getter in formatter.
This commit is contained in:
parent
0ae5a45282
commit
c80e156f96
@ -138,6 +138,14 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
return preg_replace_callback(self::FORMAT_PATTERN, array($this, 'replaceStyle'), $message);
|
return preg_replace_callback(self::FORMAT_PATTERN, array($this, 'replaceStyle'), $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return OutputFormatterStyleStack
|
||||||
|
*/
|
||||||
|
public function getStyleStack()
|
||||||
|
{
|
||||||
|
return $this->styleStack;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Replaces style of the output.
|
* Replaces style of the output.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user