Twig/Extension/CommentsExtension.php
public function render(array $options = array(), $provider = null)
    {
        if (isset($provider)) {
            $options['provider'] = $provider;
        }

        $request = $this->getCurrentRequest();
        if (!isset($request)) {
            throw new RuntimeException('Comments rendering needs the Request.');
        }

        return $this->commentsRenderer->render($request, $options);
    }
public function render(array $options = array(), $provider = null)
    {
        if (isset($provider)) {
            $options['provider'] = $provider;
        }

        $request = $this->getCurrentRequest();
        if (!isset($request)) {
            throw new RuntimeException('Comments rendering needs the Request.');
        }

        return $this->commentsRenderer->render($request, $options);
    }
public function render ( array $ options = array ( ) , $ provider = null ) { if ( isset ( $ provider ) ) { $ options [ 'provider' ] = $ provider ; } $ request = $ this -> getCurrentRequest ( ) ; if ( ! isset ( $ request ) ) { throw new RuntimeException ( 'Comments rendering needs the Request.' ) ; } return $ this -> commentsRenderer -> render ( $ request , $ options ) ; }
Triggers comments rendering.

@param array $options
@param string|null $provider Label of the provider to use. If null, the default provider will be used.

@throws \RuntimeException

@return string
Triggers comments rendering .