src/Service/MelisCoreFlashMessengerService.php
public function getFlashMessengerMessages() 
    {
        $this->fmContainer = new Container('fms');
        $flashMessages = $this->fmContainer->flashMessages;
        
        if(!empty($flashMessages))
        {
            $flashMessages = array_reverse($flashMessages);
        }
        
        return Json::encode($flashMessages);
    }
public function getFlashMessengerMessages() 
    {
        $this->fmContainer = new Container('fms');
        $flashMessages = $this->fmContainer->flashMessages;
        
        if(!empty($flashMessages))
        {
            $flashMessages = array_reverse($flashMessages);
        }
        
        return Json::encode($flashMessages);
    }
public function getFlashMessengerMessages ( ) { $ this -> fmContainer = new Container ( 'fms' ) ; $ flashMessages = $ this -> fmContainer -> flashMessages ; if ( ! empty ( $ flashMessages ) ) { $ flashMessages = array_reverse ( $ flashMessages ) ; } return Json :: encode ( $ flashMessages ) ; }
Returns all the messages stored in Melis Flash Messenger
@return Json
Returns all the messages stored in Melis Flash Messenger