You are here

public function AuthenticationServers::__construct in Lightweight Directory Access Protocol (LDAP) 8.4

Constructs a new AuthenticationServers object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

File

ldap_authentication/src/AuthenticationServers.php, line 37

Class

AuthenticationServers
Authentication serves.

Namespace

Drupal\ldap_authentication

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
  $this->storage = $entity_type_manager
    ->getStorage('ldap_server');
  $this->config = $config_factory
    ->get('ldap_authentication.settings');
}