| 1 | <?php |
||
| 12 | abstract class UserManagerAbstract implements UserManagerInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var TokenStorageInterface |
||
| 16 | */ |
||
| 17 | protected $tokenStorage; |
||
| 18 | |||
| 19 | public function __construct(TokenStorageInterface $tokenStorage) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Gets the logged in user from any place of the code. |
||
| 26 | * returns null if no user is logged in. |
||
| 27 | */ |
||
| 28 | protected function getLoggedInUser() : ?UserPermissionInterface |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function hasPermissions(UserPermissionInterface $user, array $permissions) : bool |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function hasPermission(UserPermissionInterface $user, $permission) : bool |
||
| 61 | |||
| 62 | protected function getUserPermissions(?UserPermissionInterface $user = null) : array |
||
| 77 | } |