Skip to content

Commit 7d9d641

Browse files
committed
B2B-2204: Implement Toggle For Enabling/Disabling Session Support for GraphQL
1 parent 380a785 commit 7d9d641

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/code/Magento/GraphQl/Plugin/DisableSession.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function __construct(
4242

4343
/**
4444
* Prevents session starting while in graphql area and session is disabled in config.
45-
* Returns true if session is allowed to start and false to avoid starting the session.
46-
*
47-
* @see \Magento\Framework\Session\SessionStartChecker::check
4845
*
4946
* @param SessionStartChecker $subject
5047
* @param bool $result
@@ -61,7 +58,7 @@ public function afterCheck(SessionStartChecker $subject, bool $result): bool
6158
return false;
6259
}
6360
} catch (LocalizedException $e) {
64-
// If area code is not set.
61+
//@codingStandardsIgnoreLine
6562
} finally {
6663
return $result;
6764
}

0 commit comments

Comments
 (0)