File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
app/code/Magento/PageCache/Model/App/Response Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ class HttpPlugin
22
22
*/
23
23
public function beforeSendResponse (HttpResponse $ subject )
24
24
{
25
- if (
26
- $ subject instanceof NotCacheableInterface
25
+ if ($ subject instanceof NotCacheableInterface
27
26
|| $ subject ->headersSent ()
28
27
|| $ subject ->setMetadata ("NotCacheable " )
29
28
) {
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
+ // phpcs:disable PSR1.Files.SideEffects
6
7
namespace Magento \Framework \Error ;
7
-
8
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction,Magento2.Security.IncludeFile
8
9
require_once realpath (__DIR__ ) . '/../../app/bootstrap.php ' ;
9
- require_once 'processor.php ' ;
10
+ require_once 'processor.php ' ; // phpcs:ignore Magento2.Security.IncludeFile
10
11
11
12
/**
12
13
* Error processor factory
@@ -24,8 +25,9 @@ public function createProcessor()
24
25
$ objectManager = AppObjectManager::getInstance ();
25
26
return $ objectManager ->create (Processor::class);
26
27
} catch (\RuntimeException $ exception ) {
28
+ // phpcs:ignore Magento2.Security.Superglobal
27
29
$ objectManagerFactory = \Magento \Framework \App \Bootstrap::createObjectManagerFactory (BP , $ _SERVER );
28
- $ objectManager = $ objectManagerFactory ->create ($ _SERVER );
30
+ $ objectManager = $ objectManagerFactory ->create ($ _SERVER ); // phpcs:ignore Magento2.Security.Superglobal
29
31
$ response = $ objectManager ->create (\Magento \Framework \App \Response \Http::class);
30
32
return new Processor ($ response );
31
33
}
You can’t perform that action at this time.
0 commit comments