在沙箱指令碼中BootstrapAdobe Commerce 2

若要在範例沙箱指令碼中初始化Adobe Commerce 2應用程式,請從Adobe Commerce根目錄執行以下指令碼:

<?php

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);

require __DIR__ . '/app/bootstrap.php';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();

//$model = $objectManager->get('Vendor\Module\Some\Model');
recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a