/** * Public alias for the application entry point * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ use Magento\Framework\App\Bootstrap; use Magento\Framework\App\Filesystem\DirectoryList; try { require __DIR__ . '/app/bootstrap.php'; } catch (\Exception $e) { echo <<
{$e->getMessage()}
HTML; http_response_code(500); exit(1); } $params = $_SERVER; $params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS] = array_replace_recursive( $params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS] ?? [], [ DirectoryList::PUB => [DirectoryList::URL_PATH => "pub"], DirectoryList::MEDIA => [DirectoryList::URL_PATH => "pub/media"], DirectoryList::STATIC_VIEW => [DirectoryList::URL_PATH => "pub/static"], DirectoryList::UPLOAD => [DirectoryList::URL_PATH => "pub/media/upload"], ] ); $bootstrap = Bootstrap::create(BP, $params); /** @var \Magento\Framework\App\Http $app */ $app = $bootstrap->createApplication(\Magento\Framework\App\Http::class); $bootstrap->run($app);