public function __construct(LoggerInterface $logger, LdapUserProvider $userProvider, UserManipulator $userManipulator, LdapClient $client, $bindDn, $bindPw, $baseDn, $services, $domain) { $this->logger = $logger; $this->userProvider = $userProvider; $this->userManipulator = $userManipulator; $this->ldap = $client; $this->baseDn = $baseDn; $this->services = $services; $this->domain = $domain; $this->ldap->bind($bindDn, $bindPw); }
/** * UserManipulator constructor. * @param LdapClient $client client instance * @param ValidatorInterface $validator valicator instance * @param string $baseDn * @param string $bindDn * @param string $bindPassword * @param array $services service config * @param string $domain */ public function __construct(LdapClient $client, ValidatorInterface $validator, $baseDn, $bindDn, $bindPassword, $services, $domain) { $this->client = $client; $this->baseDn = $baseDn; $this->validator = $validator; $this->bindDn = $bindDn; $this->bindPassword = $bindPassword; $this->domain = $domain; $this->services = $services; $this->client->bind($this->bindDn, $this->bindPassword); }