src/Mainio/C5/ControllerExtensions/Controller/Extension/FlashMessagesExtension.php
protected function setFlash($key, $value)
    {
        $flashbag = Session::getFlashBag();
        $flashbag->set($key, $value);
    }
protected function setFlash($key, $value)
    {
        $flashbag = Session::getFlashBag();
        $flashbag->set($key, $value);
    }
protected function setFlash ( $ key , $ value ) { $ flashbag = Session :: getFlashBag ( ) ; $ flashbag -> set ( $ key , $ value ) ; }
Sets the flash variable to the session flashbag.

@param $key string
@param $value mixed
Sets the flash variable to the session flashbag .