File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Framework \App \Config \ScopeConfigInterface ;
11
11
12
12
/**
13
- * Config for catalog media
13
+ * Session disable in graphql configuration model.
14
14
*/
15
15
class DisableSession
16
16
{
Original file line number Diff line number Diff line change @@ -43,12 +43,14 @@ public function __construct(
43
43
/**
44
44
* Prevents session starting while in graphql area and session is disabled in config.
45
45
* Returns true if session is allowed to start and false to avoid starting the session.
46
+ *
46
47
* @see \Magento\Framework\Session\SessionStartChecker::check
47
48
*
48
49
* @param SessionStartChecker $subject
49
50
* @param bool $result
50
51
* @return bool
51
52
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
53
+ * @SuppressWarnings(PHPMD.EmptyCatchBlock)
52
54
*/
53
55
public function afterCheck (SessionStartChecker $ subject , bool $ result ): bool
54
56
{
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Store:etc/config.xsd" >
9
+ <default >
10
+ <graphql >
11
+ <session >
12
+ <disable >0</disable >
13
+ </session >
14
+ </graphql >
15
+ </default >
16
+ </config >
You can’t perform that action at this time.
0 commit comments