/** * Constructor. * * @param UserProviderInterface $userProvider A UserProvider * @param UserCheckerInterface $userChecker A UserChecker * @param string $providerKey The provider key * @param LdapClientInterface $ldap An Ldap client * @param string $dnString A string used to create the bind DN * @param bool $hideUserNotFoundExceptions Whether to hide user not found exception or not */ public function __construct(UserProviderInterface $userProvider, UserCheckerInterface $userChecker, $providerKey, LdapClientInterface $ldap, $dnString = '{username}', $hideUserNotFoundExceptions = true) { parent::__construct($userChecker, $providerKey, $hideUserNotFoundExceptions); $this->userProvider = $userProvider; $this->ldap = $ldap; $this->dnString = $dnString; }
public function __construct(Client $client, UserProviderInterface $userProvider, UserCheckerInterface $userChecker, $providerKey, $hideUserNotFoundExceptions = true, LoggerInterface $logger) { parent::__construct($userChecker, $providerKey, $hideUserNotFoundExceptions); $this->userProvider = $userProvider; $this->client = $client; $this->logger = $logger; }
/** * @param GalittProvider $galittProvider * @param \Symfony\Component\Security\Core\User\UserProviderInterface $userProvider * @param UserCheckerInterface $userChecker * @param $providerKey * @param EncoderFactoryInterface $encoderFactory * @param bool $hideUserNotFoundExceptions */ public function __construct(GalittProvider $galittProvider, UserProviderInterface $userProvider, UserCheckerInterface $userChecker, $providerKey, EncoderFactoryInterface $encoderFactory, $hideUserNotFoundExceptions = true) { parent::__construct($userChecker, $providerKey, $hideUserNotFoundExceptions); $this->encoderFactory = $encoderFactory; $this->userProvider = $userProvider; $this->galittProvider = $galittProvider; }
/** * @param Service $service * @param \Symfony\Component\Security\Core\User\UserProviderInterface $userProvider * @param UserCheckerInterface $userChecker * @param $providerKey * @param EncoderFactoryInterface $encoderFactory * @param bool $hideUserNotFoundExceptions */ public function __construct($fom_params, UserProviderInterface $userProvider, UserCheckerInterface $userChecker, $providerKey, EncoderFactoryInterface $encoderFactory, $hideUserNotFoundExceptions = true, Logger $logger) { parent::__construct($userChecker, $providerKey, $hideUserNotFoundExceptions); $this->encoderFactory = $encoderFactory; $this->userProvider = $userProvider; $this->params = $fom_params['ldap']; $this->logger = $logger; }
public function __construct(Session $session, ClientFactory $clientFactory, UserProviderInterface $userProvider, UserCheckerInterface $userChecker, $providerKey, EncoderFactoryInterface $encoderFactory, $hideUserNotFoundExceptions = true) { parent::__construct($userChecker, $providerKey, $hideUserNotFoundExceptions); $this->encoderFactory = $encoderFactory; $this->userProvider = $userProvider; $this->clientFactory = $clientFactory; $this->session = $session; }
public function __construct(\Closure $lazyRepository, UserCheckerInterface $userChecker, $providerKey, $hideUserNotFoundExceptions = true) { parent::__construct($userChecker, $providerKey, $hideUserNotFoundExceptions); $this->lazyRepository = $lazyRepository; }
/** * Constructor. * * @param UserCheckerInterface $userChecker An UserCheckerInterface interface * @param string $providerKey A provider key * @param UserProviderInterface $userProvider An UserProviderInterface interface * @param LdapManagerInterface $ldapManager An LdapProviderInterface interface * @param Boolean $hideUserNotFoundExceptions Whether to hide user not found exception or not */ public function __construct(UserCheckerInterface $userChecker, $providerKey, UserProviderInterface $userProvider, LdapManagerInterface $ldapManager, $hideUserNotFoundExceptions = true) { parent::__construct($userChecker, $providerKey, $hideUserNotFoundExceptions); $this->userProvider = $userProvider; $this->ldapManager = $ldapManager; }