File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
lib/internal/Magento/Framework Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ class Kernel
69
69
*/
70
70
private $ identifierForSave ;
71
71
72
+ // phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
72
73
private readonly CookieDisablerInterface $ cookieDisabler ;
73
74
74
75
/**
Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Framework \Stdlib \Cookie ;
9
9
10
- use Magento \Framework \App \ObjectManager ;
11
- use Magento \Framework \Exception \InputException ;
12
10
use Magento \Framework \Stdlib \CookieDisablerInterface ;
13
- use Magento \Framework \Stdlib \CookieManagerInterface ;
14
- use Magento \Framework \Phrase ;
15
- use Magento \Framework \HTTP \Header as HttpHeader ;
16
- use Psr \Log \LoggerInterface ;
17
11
18
12
/**
19
13
* Disables sending the cookies that are currently set.
20
14
*/
21
15
class PhpCookieDisabler implements CookieDisablerInterface
22
16
{
17
+ /**
18
+ * @inheritDoc
19
+ */
23
20
public function setCookiesDisabled (bool $ disabled ) : void
24
21
{
25
22
if ($ disabled && !headers_sent ()) {
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
6
7
7
8
namespace Magento \Framework \Stdlib ;
8
9
11
12
*/
12
13
interface CookieDisablerInterface
13
14
{
15
+ /**
16
+ * Set Cookies Disabled. If true, cookies won't be sent.
17
+ *
18
+ * @param bool $disabled
19
+ * @return void
20
+ */
14
21
public function setCookiesDisabled (bool $ disabled ) : void ;
15
22
}
You can’t perform that action at this time.
0 commit comments