diff --git a/pub/errors/processor.php b/pub/errors/processor.php index 68dc3963e93..5e4cd135d86 100644 --- a/pub/errors/processor.php +++ b/pub/errors/processor.php @@ -204,7 +204,7 @@ class Processor if (isset($_GET['id'])) { $this->loadReport($_GET['id']); } - $this->response->setMetadata("NotCacheable", true); + $response->setMetadata("NotCacheable", true); } /** diff --git a/pub/errors/processorFactory.php b/pub/errors/processorFactory.php index 27b6235587c..c519a6d3692 100644 --- a/pub/errors/processorFactory.php +++ b/pub/errors/processorFactory.php @@ -5,9 +5,11 @@ */ // phpcs:disable PSR1.Files.SideEffects namespace Magento\Framework\Error; + // phpcs:ignore Magento2.Functions.DiscouragedFunction,Magento2.Security.IncludeFile require_once realpath(__DIR__) . '/../../app/bootstrap.php'; require_once 'processor.php'; // phpcs:ignore Magento2.Security.IncludeFile +use Magento\Framework\App\ObjectManager as AppObjectManager; /** * Error processor factory