original_string: public function showShareButtons(
          Twig_Environment $twigEnvironment,
          array $options = array(),
          array $providers = array()
      ) {
          $this->shareButtonsRenderer->setTemplateEngine($twigEnvironment);
  
          if (isset($providers)) {
              $options['providers'] = $providers;
          }
  
          if (!isset($options['template'])) {
              $options['template'] = $this->configResolver->getParameter('template', 'ez_share_buttons');
          }
  
          return $twigEnvironment->render(sprintf(
              'EzSystemsShareButtonsBundle::%s.html.twig',
              $options['template']
          ), array(
              'shareButtons' => $this->shareButtonsRenderer->render($options),
          ));
      }
code: public function showShareButtons(
          Twig_Environment $twigEnvironment,
          array $options = array(),
          array $providers = array()
      ) {
          $this->shareButtonsRenderer->setTemplateEngine($twigEnvironment);
  
          if (isset($providers)) {
              $options['providers'] = $providers;
          }
  
          if (!isset($options['template'])) {
              $options['template'] = $this->configResolver->getParameter('template', 'ez_share_buttons');
          }
  
          return $twigEnvironment->render(sprintf(
              'EzSystemsShareButtonsBundle::%s.html.twig',
              $options['template']
          ), array(
              'shareButtons' => $this->shareButtonsRenderer->render($options),
          ));
      }
code_tokens: public function showShareButtons ( Twig_Environment $ twigEnvironment , array $ options = array ( ) , array $ providers = array ( ) ) { $ this -> shareButtonsRenderer -> setTemplateEngine ( $ twigEnvironment ) ; if ( isset ( $ providers ) ) { $ options [ 'providers' ] = $ providers ; } if ( ! isset ( $ options [ 'template' ] ) ) { $ options [ 'template' ] = $ this -> configResolver -> getParameter ( 'template' , 'ez_share_buttons' ) ; } return $ twigEnvironment -> render ( sprintf ( 'EzSystemsShareButtonsBundle::%s.html.twig' , $ options [ 'template' ] ) , array ( 'shareButtons' => $ this -> shareButtonsRenderer -> render ( $ options ) , ) ) ; }
docstring: Renders share buttons bar template based on user settings.
  
  @param \Twig_Environment $twigEnvironment
  @param array $options
  @param string[] $providers
  
  @return string
docstring_tokens: Renders share buttons bar template based on user settings .