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

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