You are here

public function SimpleLdapServer::__construct in Simple LDAP 8

Constructs a SimpleLdapServer.

Parameters

ConfigFactoryInterface $config_factory:

\Drupal\simple_ldap\SimpleLdap $ldap:

File

src/SimpleLdapServer.php, line 46

Class

SimpleLdapServer

Namespace

Drupal\simple_ldap

Code

public function __construct(ConfigFactoryInterface $config_factory, SimpleLdap $ldap) {
  $this->config = $config_factory
    ->get('simple_ldap.server');
  $this->ldap = $ldap;
  $this
    ->connect();
}