Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function __construct( |
||
15 | private readonly AuthenticationConfigHelper $authConfigHelper, |
||
16 | ) { |
||
17 | $params = $this->authConfigHelper->getLdapConfig(null); |
||
18 | |||
19 | $config = [ |
||
20 | 'connection_string' => $params['connection_string'] ?? 'ldap://localhost:389', |
||
21 | 'options' => [ |
||
22 | 'protocol_version' => $params['protocol_version'] ?? 3, |
||
23 | 'referrals' => $params['referrals'] ?? false, |
||
24 | ], |
||
25 | ]; |
||
26 | |||
27 | parent::__construct($config); |
||
28 | } |
||
30 |