9 if (PHP_SAPI ==
'cli') {
10 echo
"You cannot run this from the command line." . PHP_EOL .
11 "Run \"php bin/magento\" instead." . PHP_EOL;
15 require
__DIR__ .
'/../app/bootstrap.php';
16 }
catch (\Exception $e) {
18 <div style=
"font:12px/1.35em arial, helvetica, sans-serif;">
19 <div style=
"margin:0 0 25px 0; border-bottom:1px solid #ccc;">
20 <h3 style=
"margin:0;font-size:1.7em;font-weight:normal;text-transform:none;text-align:left;color:#2f2f2f;">
23 <p>{$e->getMessage()}</p>
30 $handler = new \Magento\Framework\App\ErrorHandler();
31 set_error_handler([
$handler,
'handler']);
37 ->get(ObjectManagerProvider::class)
38 ->setObjectManager(\
Magento\Framework\
App\Bootstrap::create(
BP, $_SERVER)->getObjectManager());
defined('TESTS_BP')||define('TESTS_BP' __DIR__
catch(\Exception $e) $bootstrap
catch(\Exception $e) $handler