Passed
Pull Request — master (#6735)
by Angel Fernando Quiroz
08:16
created

LdapAdapter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
nc 1
nop 1
dl 0
loc 12
rs 10
c 1
b 0
f 0
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
declare(strict_types=1);
6
7
namespace Chamilo\CoreBundle\Security\Authenticator\Ldap;
8
9
use Chamilo\CoreBundle\Helpers\AuthenticationConfigHelper;
10
use Symfony\Component\Ldap\Adapter\ExtLdap\Adapter;
11
12
class LdapAdapter extends Adapter
13
{
14
    public function __construct(
15
        protected readonly AuthenticationConfigHelper $configHelper
16
    ) {
17
        $config = [
18
            'connection_string' => '',
19
            'options' => [
20
                'protocol_version' => 3,
21
                'referrals' => false,
22
            ],
23
        ];
24
25
        parent::__construct($config);
26
    }
27
}