public function getFlashMessages($type, $domain = null)
    {
        @trigger_error(
            'Method "FlashMessageExtension::getFlashMessages()" is deprecated since SonataCoreBundle 3.11.0 and will'.
            ' be removed in 4.0. Use the FlashMessageRuntime instead.',
            E_USER_DEPRECATED
        );

        return $this->flashManager->get($type, $domain);
    }
public function getFlashMessages($type, $domain = null)
    {
        @trigger_error(
            'Method "FlashMessageExtension::getFlashMessages()" is deprecated since SonataCoreBundle 3.11.0 and will'.
            ' be removed in 4.0. Use the FlashMessageRuntime instead.',
            E_USER_DEPRECATED
        );

        return $this->flashManager->get($type, $domain);
    }
public function getFlashMessages ( $ type , $ domain = null ) { @ trigger_error ( 'Method "FlashMessageExtension::getFlashMessages()" is deprecated since SonataCoreBundle 3.11.0 and will' . ' be removed in 4.0. Use the FlashMessageRuntime instead.' , E_USER_DEPRECATED ) ; return $ this -> flashManager -> get ( $ type , $ domain ) ; }
Returns flash messages handled by Sonata core flash manager.

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

@return string

@deprecated since 3.11.0, to be removed in 4.0. Use the FlashMessageRuntime instead.
Returns flash messages handled by Sonata core flash manager .