public function get($type, $domain = null)
    {
        $this->handle($domain);

        return $this->getSession()->getFlashBag()->get($type);
    }
public function get($type, $domain = null)
    {
        $this->handle($domain);

        return $this->getSession()->getFlashBag()->get($type);
    }
public function get ( $ type , $ domain = null ) { $ this -> handle ( $ domain ) ; return $ this -> getSession ( ) -> getFlashBag ( ) -> get ( $ type ) ; }
Returns flash bag messages for correct type after renaming with Sonata core type.

@param string $type   Type of flash message
@param string $domain Translation domain to use

@return array
Returns flash bag messages for correct type after renaming with Sonata core type .