/**
  * Gets the 'url_generator' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Drupal\Core\Render\MetadataBubblingUrlGenerator A Drupal\Core\Render\MetadataBubblingUrlGenerator instance.
  */
 protected function getUrlGeneratorService()
 {
     $a = $this->get('router.request_context', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $b = new \Drupal\Core\Routing\UrlGenerator($this->get('router.route_provider'), $this->get('path_processor_manager'), $this->get('route_processor_manager'), $this->get('request_stack'), array(0 => 'http', 1 => 'https', 2 => 'ftp', 3 => 'news', 4 => 'nntp', 5 => 'tel', 6 => 'telnet', 7 => 'mailto', 8 => 'irc', 9 => 'ssh', 10 => 'sftp', 11 => 'webcal', 12 => 'rtsp'));
     if ($this->has('router.request_context')) {
         $b->setContext($a);
     }
     $this->services['url_generator'] = $instance = new \Drupal\Core\Render\MetadataBubblingUrlGenerator($b, $this->get('renderer'));
     if ($this->has('router.request_context')) {
         $instance->setContext($a);
     }
     $instance->_serviceId = 'url_generator';
     return $instance;
 }
 /**
  * Gets the 'url_generator' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Drupal\Core\Routing\UrlGenerator A Drupal\Core\Routing\UrlGenerator instance.
  */
 protected function getUrlGeneratorService()
 {
     $this->services['url_generator'] = $instance = new \Drupal\Core\Routing\UrlGenerator($this->get('router.route_provider'), $this->get('path_processor_manager'), $this->get('route_processor_manager'), $this->get('config.factory'), $this->get('request_stack'));
     if ($this->has('router.request_context')) {
         $instance->setContext($this->get('router.request_context', ContainerInterface::NULL_ON_INVALID_REFERENCE));
     }
     $instance->_serviceId = 'url_generator';
     return $instance;
 }