Skip to content

Instantly share code, notes, and snippets.

@rafaelstz
Last active May 21, 2019 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelstz/57d6f34be55a0c53290a34e0313936ee to your computer and use it in GitHub Desktop.
Save rafaelstz/57d6f34be55a0c53290a34e0313936ee to your computer and use it in GitHub Desktop.
Magento 2 Multistore to test
$params = $_SERVER;
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'website_code';
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment