@@ -108,7 +108,7 @@ |
||
108 | 108 | /** |
109 | 109 | * @param Request $request |
110 | 110 | * |
111 | - * @return UserPasswordInterface|null |
|
111 | + * @return null|\Chubbyphp\Model\ModelInterface |
|
112 | 112 | */ |
113 | 113 | public function getAuthenticatedUser(Request $request) |
114 | 114 | { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\Security\Authentication; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\Security\Authorization; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\Security\Authentication\Exception; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\Security; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\Security\Authorization; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\Security\Authorization; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\Security\Authorization; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\Security\Authorization; |
6 | 6 | |
@@ -16,11 +16,11 @@ discard block |
||
16 | 16 | { |
17 | 17 | $this->registerRoleHierarchyResolver($container); |
18 | 18 | |
19 | - $container['security.authorization.authorizations'] = function () use ($container) { |
|
19 | + $container['security.authorization.authorizations'] = function() use ($container) { |
|
20 | 20 | return []; |
21 | 21 | }; |
22 | 22 | |
23 | - $container['security.authorization'] = function () use ($container) { |
|
23 | + $container['security.authorization'] = function() use ($container) { |
|
24 | 24 | return new AuthorizationStack($container['security.authorization.authorizations']); |
25 | 25 | }; |
26 | 26 | } |
@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | */ |
31 | 31 | private function registerRoleHierarchyResolver(Container $container) |
32 | 32 | { |
33 | - $container['security.authorization.rolehierarchy'] = function () use ($container) { |
|
33 | + $container['security.authorization.rolehierarchy'] = function() use ($container) { |
|
34 | 34 | return []; |
35 | 35 | }; |
36 | 36 | |
37 | - $container['security.authorization.rolehierarchyresolver'] = function () use ($container) { |
|
37 | + $container['security.authorization.rolehierarchyresolver'] = function() use ($container) { |
|
38 | 38 | return new RoleHierarchyResolver( |
39 | 39 | $container['security.authorization.rolehierarchy'], |
40 | 40 | $container['logger'] ?? null |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\Security\Authorization; |
6 | 6 |