Skip to content

Fixed the broken 'alias' application entry point so it works. #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions pub/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
/**
* Public alias for the application entry point
*
* Example - run a particular store or website:
* --------------------------------------------
* $params = $_SERVER;
* $params['MAGE_RUN_CODE'] = 'website2';
* $params['MAGE_RUN_TYPE'] = 'website';
* ...
* $entryPoint = new \Magento\Core\Model\EntryPoint\Http(new \Magento\Core\Model\Config\Primary(BP, $params));
* --------------------------------------------
*
* Magento
*
* NOTICE OF LICENSE
Expand All @@ -24,9 +33,9 @@
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
require __DIR__ . '/../app/bootstrap.php';
Magento_Profiler::start('magento');
\Magento\Profiler::start('magento');
$params = $_SERVER;
$params[\Magento\Core\Model\App::PARAM_APP_URIS][\Magento\Core\Model\Dir::PUB] = '';
$entryPoint = new \Magento\Core\Model\EntryPoint\Http(new \Magento\Core\Model\Config\Primary(BP, $params));
$entryPoint->processRequest();
Magento_Profiler::stop('magento');
\Magento\Profiler::stop('magento');