init
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<IfVersion < 2.4>
|
||||
order allow,deny
|
||||
deny from all
|
||||
</IfVersion>
|
||||
<IfVersion >= 2.4>
|
||||
Require all denied
|
||||
</IfVersion>
|
||||
|
||||
Executable
+39
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
echo 'bin/magento must be run as a CLI application';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
try {
|
||||
require __DIR__ . '/../app/bootstrap.php';
|
||||
} catch (\Exception $e) {
|
||||
echo 'Autoload error: ' . $e->getMessage();
|
||||
exit(1);
|
||||
}
|
||||
try {
|
||||
$handler = new \Magento\Framework\App\ErrorHandler();
|
||||
set_error_handler([$handler, 'handler']);
|
||||
$application = new Magento\Framework\Console\Cli('Magento CLI');
|
||||
$application->run();
|
||||
} catch (\Throwable $e) {
|
||||
while ($e) {
|
||||
if ($e->getFile()) {
|
||||
echo sprintf("\nThere is an error in %s", $e->getFile());
|
||||
if ($e->getLine()) {
|
||||
echo sprintf(" at line: %d", $e->getLine());
|
||||
}
|
||||
echo "\n";
|
||||
}
|
||||
echo $e->getMessage();
|
||||
echo $e->getTraceAsString();
|
||||
echo "\n\n";
|
||||
$e = $e->getPrevious();
|
||||
}
|
||||
exit(Magento\Framework\Console\Cli::RETURN_FAILURE);
|
||||
}
|
||||
Reference in New Issue
Block a user