Twig/FlashMessagesExtension.php
public function flashMessages($environment, array $options = array())
    {
        $params = array_merge(array(
            'close_button' => true, 'trans_domain' => null,
        ), $options);

        $template = $environment->loadTemplate('ASFLayoutBundle:session:flash-messages.html.twig');

        return $template->renderBlock('flash_messages', array_merge($environment->getGlobals(), $params));
    }
public function flashMessages($environment, array $options = array())
    {
        $params = array_merge(array(
            'close_button' => true, 'trans_domain' => null,
        ), $options);

        $template = $environment->loadTemplate('ASFLayoutBundle:session:flash-messages.html.twig');

        return $template->renderBlock('flash_messages', array_merge($environment->getGlobals(), $params));
    }
public function flashMessages ( $ environment , array $ options = array ( ) ) { $ params = array_merge ( array ( 'close_button' => true , 'trans_domain' => null , ) , $ options ) ; $ template = $ environment -> loadTemplate ( 'ASFLayoutBundle:session:flash-messages.html.twig' ) ; return $ template -> renderBlock ( 'flash_messages' , array_merge ( $ environment -> getGlobals ( ) , $ params ) ) ; }
Return HTML of flash messages according to flash-messages.html.twig.

@param \Twig_Environment $environment
@param array             $options
- button_close : display a close button
- trans_domain set the domain for translation

@return string
Return HTML of flash messages according to flash - messages . html . twig .