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

LdapAdapter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 14
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
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
}