|
@@ -9,7 +9,7 @@ discard block |
|
|
block discarded – undo |
|
9
|
9
|
* file that was distributed with this source code. |
|
10
|
10
|
*/ |
|
11
|
11
|
|
|
12
|
|
-declare(strict_types=1); |
|
|
12
|
+declare(strict_types = 1); |
|
13
|
13
|
|
|
14
|
14
|
namespace ApiPlatform\Core\Security\EventListener; |
|
15
|
15
|
|
|
@@ -107,7 +107,7 @@ discard block |
|
|
block discarded – undo |
|
107
|
107
|
'user' => $token->getUser(), |
|
108
|
108
|
'object' => $request->attributes->get('data'), |
|
109
|
109
|
'request' => $request, |
|
110
|
|
- 'roles' => array_map(function (Role $role) {return $role->getRole(); }, $roles), |
|
|
110
|
+ 'roles' => array_map(function(Role $role) {return $role->getRole(); }, $roles), |
|
111
|
111
|
'trust_resolver' => $this->authenticationTrustResolver, |
|
112
|
112
|
// needed for the is_granted expression function |
|
113
|
113
|
'auth_checker' => $this->authorizationChecker, |
Please login to merge, or discard this patch.