File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
app/code/Magento/GraphQlCache/Model/Plugin/Auth Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Authorization \Model \UserContextInterface ;
11
11
use Magento \GraphQl \Model \Query \ContextFactoryInterface ;
12
12
use Magento \Integration \Api \UserTokenIssuerInterface ;
13
- use Magento \Integration \Model \CustomUserContext ;
14
13
15
14
/**
16
15
* Load the shared UserContext with data for the new user after a token is generated
Original file line number Diff line number Diff line change 9
9
10
10
use Magento \Authorization \Model \UserContextInterface ;
11
11
use Magento \GraphQl \Model \Query \ContextFactoryInterface ;
12
+ use Magento \Integration \Api \UserTokenRevokerInterface ;
12
13
use Magento \Integration \Model \CustomUserContext ;
13
14
14
15
/**
@@ -32,9 +33,12 @@ public function __construct(ContextFactoryInterface $contextFactory)
32
33
/**
33
34
* Reset the shared user context to guest after a token is revoked
34
35
*
36
+ * @param UserTokenRevokerInterface $revoker
35
37
* @return void
38
+ *
39
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
36
40
*/
37
- public function afterRevokeFor (): void
41
+ public function afterRevokeFor (UserTokenRevokerInterface $ revoker ): void
38
42
{
39
43
$ this ->contextFactory ->create (new CustomUserContext (0 , UserContextInterface::USER_TYPE_GUEST ));
40
44
}
You can’t perform that action at this time.
0 commit comments