/** * Add a localized message to the response * @param string $translationKey translation key of the message * @param string $type type of the message * @param array $vars array with variables for the translator * @return null */ private function addMessage($translationKey, $type, $vars) { $message = new Message($translationKey, $type, $vars); $this->response->addMessage($message); }