Commit 689a03f7 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Aide de vue Messenger : allez, si la sévérité est inattendue, c'est pas...

Aide de vue Messenger : allez, si la sévérité est inattendue, c'est pas graaaaave, on a qu'à dire que c'est 'info' !
parent 4578bfb6
......@@ -363,9 +363,10 @@ class Messenger extends AbstractHelper implements MessageAwareInterface
*/
public function getTemplate($severity, $containerId = null)
{
if (!isset($this->uiClasses[$severity])) {
throw new LogicException("Sévérité inconnue: " . $severity);
}
// if (!isset($this->uiClasses[$severity])) {
// throw new LogicException("Sévérité inconnue: " . $severity);
// }
$severity = isset($this->uiClasses[$severity]) ? $this->uiClasses[$severity] : self::INFO;
$alertClass = $this->uiClasses[$severity][0];
$iconClass = $this->uiClasses[$severity][1];
......
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