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 1010use Magento \Authorization \Model \UserContextInterface ;
1111use Magento \GraphQl \Model \Query \ContextFactoryInterface ;
1212use Magento \Integration \Api \UserTokenIssuerInterface ;
13- use Magento \Integration \Model \CustomUserContext ;
1413
1514/**
1615 * 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 99
1010use Magento \Authorization \Model \UserContextInterface ;
1111use Magento \GraphQl \Model \Query \ContextFactoryInterface ;
12+ use Magento \Integration \Api \UserTokenRevokerInterface ;
1213use Magento \Integration \Model \CustomUserContext ;
1314
1415/**
@@ -32,9 +33,12 @@ public function __construct(ContextFactoryInterface $contextFactory)
3233 /**
3334 * Reset the shared user context to guest after a token is revoked
3435 *
36+ * @param UserTokenRevokerInterface $revoker
3537 * @return void
38+ *
39+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
3640 */
37- public function afterRevokeFor (): void
41+ public function afterRevokeFor (UserTokenRevokerInterface $ revoker ): void
3842 {
3943 $ this ->contextFactory ->create (new CustomUserContext (0 , UserContextInterface::USER_TYPE_GUEST ));
4044 }
You can’t perform that action at this time.
0 commit comments