24 lines
616 B
PHP
Executable File
24 lines
616 B
PHP
Executable File
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
require_once 'processorFactory.php';
|
|
|
|
$processorFactory = new \Magento\Framework\Error\ProcessorFactory();
|
|
$processor = $processorFactory->createProcessor();
|
|
|
|
if (isset($reportData) && is_array($reportData)) {
|
|
$reportUrl = $processor->saveReport($reportData);
|
|
if (headers_sent()) {
|
|
echo '<script type="text/javascript">';
|
|
echo "window.location.href = '{$reportUrl}';";
|
|
echo '</script>';
|
|
exit;
|
|
}
|
|
}
|
|
|
|
$response = $processor->processReport();
|
|
$response->sendResponse();
|