1 | <?php |
||
8 | class LdapAttributesProvider implements AttributesByUsernameProviderInterface, AttributesInjectionProviderInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var LdapService |
||
12 | */ |
||
13 | protected $ldapService; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $filter; |
||
19 | |||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | protected $enabled; |
||
24 | |||
25 | /** |
||
26 | * @var SessionInterface |
||
27 | */ |
||
28 | protected $session; |
||
29 | |||
30 | /** |
||
31 | * @param LdapService $ldapService |
||
32 | * @param array $filter |
||
33 | * @param bool $enabled |
||
34 | */ |
||
35 | public function __construct(LdapService $ldapService, $filter = [], $enabled = false) |
||
41 | |||
42 | /** |
||
43 | * @param SessionInterface $session |
||
44 | */ |
||
45 | public function setSession(SessionInterface $session) |
||
49 | |||
50 | /** |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function isEnabled() |
||
57 | |||
58 | /** |
||
59 | * @param array $filter |
||
60 | * @return array |
||
61 | */ |
||
62 | public function getAttributesByFilter(array $filter) |
||
98 | |||
99 | public function getAttributesByUsername($username) |
||
103 | |||
104 | /** |
||
105 | * @return array |
||
106 | */ |
||
107 | public function getAttributes() |
||
111 | } |
||
112 |