/**
  * @DI\Observe("render_external_authentication_button")
  *
  * @param RenderAuthenticationButtonEvent $event
  *
  * @return string
  */
 public function onRenderButton(RenderAuthenticationButtonEvent $event)
 {
     $services = $this->oauthManager->getActiveServices();
     if (count($services) > 0) {
         $content = $this->templating->render('IcapOAuthBundle::buttons.html.twig', array('services' => $services));
         $event->addContent($content);
     }
 }
 /**
  * @DI\Observe("render_external_authentication_button")
  *
  * @param RenderAuthenticationButtonEvent $event
  *
  * @return string
  */
 public function onRenderButton(RenderAuthenticationButtonEvent $event)
 {
     $platforms = $this->oauthManager->findActivatedExternalAuthentications();
     $content = $this->templating->render('ClarolineCoreBundle:Authentication:externalClaroline.html.twig', array('platforms' => $platforms));
     $event->addContent($content);
 }
 /**
  * @DI\Observe("render_external_authentication_button")
  *
  * @param RenderAuthenticationButtonEvent $event
  *
  * @return string
  */
 public function onRenderButton(RenderAuthenticationButtonEvent $event)
 {
     $content = $this->templating->render('FormaLibreOfficeConnectBundle::button.html.twig', array());
     $event->addContent($content);
 }