* Public alias for the application entry point * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ use Magento\Framework\App\Bootstrap; try { require __DIR__ . '/../app/bootstrap.php'; } catch (\Exception $e) { echo <<

Autoload error

{$e->getMessage()}

HTML; http_response_code(500); exit(1); } $params = $_SERVER; $host = $_SERVER['HTTP_HOST'] ?? ''; // Sites Breeze → store-level routing // Rollback: remettre le site dans le match website-level $breezeStores = [ 'smart-manchette.fr' => 'smartm_breeze', 'www.smart-manchette.fr' => 'smartm_breeze', 'kadomatic.fr' => 'kdm_breeze', 'www.kadomatic.fr' => 'kdm_breeze', ]; if (isset($breezeStores[$host])) { $params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = $breezeStores[$host]; $params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'store'; } else { $params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = match ($host) { 'mon-porte-clef.fr', 'www.mon-porte-clef.fr' => 'monporteclef', 'porte-cle-pro.fr', 'www.porte-cle-pro.fr' => 'porteclepro', 'chou-pet.fr', 'www.chou-pet.fr' => 'choupet', default => 'default', }; $params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website'; } $bootstrap = Bootstrap::create(BP, $params); /** @var \Magento\Framework\App\Http $app */ $app = $bootstrap->createApplication(\Magento\Framework\App\Http::class); $bootstrap->run($app);