/** * Get the un-localized message, but with the parameters filled in * * @return string */ public function getLogMessage() { if ($this->logMessage === null) { $renderer = new Placeholder(); $this->logMessage = $renderer->render([$this->getRawMessage()], $this->getParameters()); } return $this->logMessage; }
/** * Return the un-localized string, but with the parameters filled in. * * @return string */ public function getLogMessage() { return $this->renderer->render([$this->message], $this->params); }
/** * @param string $text The text with placeholders * @param array $arguments The arguments supplying values for the placeholders * @param string $result The result of Phrase rendering * * @dataProvider renderPlaceholderDataProvider */ public function testRenderPlaceholder($text, array $arguments, $result) { $this->assertEquals($result, $this->_renderer->render([$text], $arguments)); }