Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
report.php
Go to the documentation of this file.
1 <?php
7 require_once 'processorFactory.php';
8 
9 $processorFactory = new \Magento\Framework\Error\ProcessorFactory();
10 $processor = $processorFactory->createProcessor();
11 
12 if (isset($reportData) && is_array($reportData)) {
13  $reportUrl = $processor->saveReport($reportData);
14  if (headers_sent()) {
15  echo '<script type="text/javascript">';
16  echo "window.location.href = '{$reportUrl}';";
17  echo '</script>';
18  exit;
19  }
20 }
21 
22 $response = $processor->processReport();
23 $response->sendResponse();
$processor
Definition: report.php:10
$processorFactory
Definition: report.php:9
exit
Definition: redirect.phtml:12
if(isset($reportData) &&is_array($reportData)) $response
Definition: report.php:22