Test Failed
Push — develop ( 28e0cd...307ddb )
by Daniel
05:05
created

EntityUserProvider::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Security;
4
5
use Silverback\ApiComponentBundle\Entity\User\User;
6
use Doctrine\Common\Persistence\ManagerRegistry;
7
use Symfony\Bridge\Doctrine\Security\User\EntityUserProvider as BaseUserProvider;
8
9
class EntityUserProvider extends BaseUserProvider
10
{
11
    public function __construct(
12
        ManagerRegistry $registry,
13
        string $classOrAlias = User::class,
14
        string $property = 'username',
15
        string $managerName = null
16
    ) {
17
        parent::__construct($registry, $classOrAlias, $property, $managerName);
18
    }
19
}
20