Completed
Push — master ( be772b...99d542 )
by Tomas
16:16
created

UserManager::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Eziat\PermissionBundle\Manager;
6
7
use Eziat\PermissionBundle\Model\UserManagerAbstract;
8
use Eziat\PermissionBundle\Model\UserManagerInterface;
9
use Eziat\PermissionBundle\Model\UserPermissionInterface;
10
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
11
12
/**
13
 * @author Tomas Jakl <[email protected]>
14
 */
15
class UserManager extends UserManagerAbstract implements UserManagerInterface
16
{
17
    public function __construct(TokenStorageInterface $tokenStorage)
18
    {
19
        parent::__construct($tokenStorage);
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function getPermissions(UserPermissionInterface $user = null) : array
26
    {
27
        return $this->getUserPermissions($user);
28
    }
29
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function invalidatePermissions(UserPermissionInterface $user) : void
35
    {
36
    }
37
}