format() 공개 메소드

Formats the given string.
public format ( string $string, Style $style = null ) : string
$string string The string to format.
$style Style The style to use.
리턴 string The formatted string.
예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function format($message)
 {
     if ($this->decorated) {
         return $this->adaptedFormatter->format($message);
     }
     return $this->adaptedFormatter->removeFormat($message);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function format($string, Style $style = null)
 {
     return $this->formatter->format($string, $style);
 }