src/Yggdrasil/Core/Controller/SessionManagerTrait.php
protected function addFlash(string $type, $message): void
    {
        (new Session())->getFlashBag()->set($type, $message);
    }
protected function addFlash(string $type, $message): void
    {
        (new Session())->getFlashBag()->set($type, $message);
    }
protected function addFlash ( string $ type , $ message ) : void { ( new Session ( ) ) -> getFlashBag ( ) -> set ( $ type , $ message ) ; }
Adds flash to session flash bag

@param string       $type    Type of flash bag
@param string|array $message Message of flash
Adds flash to session flash bag