/**
  * Gets the 'authentication' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Drupal\Core\Authentication\AuthenticationManager A Drupal\Core\Authentication\AuthenticationManager instance.
  */
 protected function getAuthenticationService()
 {
     $this->services['authentication'] = $instance = new \Drupal\Core\Authentication\AuthenticationManager();
     $instance->addProvider($this->get('basic_auth.authentication.basic_auth'), 'basic_auth', 100, false);
     $instance->addProvider($this->get('user.authentication.cookie'), 'cookie', 0, true);
     $instance->_serviceId = 'authentication';
     return $instance;
 }
 /**
  * Gets the 'authentication' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return Drupal\Core\Authentication\AuthenticationManager A Drupal\Core\Authentication\AuthenticationManager instance.
  */
 protected function getAuthenticationService()
 {
     $this->services['authentication'] = $instance = new \Drupal\Core\Authentication\AuthenticationManager();
     $instance->addProvider('authentication.basic_auth', $this->get('authentication.basic_auth'), 100);
     $instance->addProvider('authentication.cookie', $this->get('authentication.cookie'), 0);
     return $instance;
 }