Commit 9c074383 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Aide de vue Messenger : nouvelle méthode pour ajouter plusieurs messages.

parent c0b8a735
......@@ -231,6 +231,20 @@ class Messenger extends AbstractHelper
return $this;
}
/**
* Ajoute plusieurs messages.
*
* @param array $messages [Sévérité => Message]
* @return Messenger
*/
public function addMessages($messages)
{
foreach ($messages as $severity => $message) {
$this->addMessage($message, is_string($severity) ? $severity : null);
}
return $this;
}
/**
* Supprime tous les messages courants.
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment