protected function setFlash($type,$message,$parameters = array(),$domain = 'flashes')
    {
        return $this->container->get('session')->getBag('flashes')->add($type,$message);
    }
protected function setFlash($type,$message,$parameters = array(),$domain = 'flashes')
    {
        return $this->container->get('session')->getBag('flashes')->add($type,$message);
    }
protected function setFlash ( $ type , $ message , $ parameters = array ( ) , $ domain = 'flashes' ) { return $ this -> container -> get ( 'session' ) -> getBag ( 'flashes' ) -> add ( $ type , $ message ) ; }
Envia un mensaje flash

@param array $type success|error
@param type $message
@param type $parameters
@param type $domain
@return type
Envia un mensaje flash