public static function add($strMessage, $strType, $strScope = TL_MODE)
{
if ($strMessage == '') {
return;
}
if (!in_array($strType, static::getTypes())) {
throw new \Exception("Invalid message type {$strType}");
}
\System::getContainer()->get('session')->getFlashBag()->add(static::getFlashBagKey($strType, $strScope), $strMessage);
}