コード例 #1
0
 /**
  * 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
  */
 public function render(array $options = array(), $provider = null)
 {
     if (isset($provider)) {
         $options['provider'] = $provider;
     }
     if (!isset($this->request)) {
         throw new RuntimeException('Comments rendering needs the Request.');
     }
     return $this->commentsRenderer->render($this->request, $options);
 }