Skip to content

Commit 16c2c4a

Browse files
committed
AC-13231: Magento option --magento-init-params never used when running cli?
Remove changes and update required change accordingly to fix SVC and Static check failures
1 parent dc8c445 commit 16c2c4a

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

lib/internal/Magento/Framework/App/Bootstrap.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright 2014 Adobe
4-
* All rights reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
55
*/
66
declare(strict_types=1);
77

@@ -68,11 +68,6 @@ class Bootstrap
6868
*/
6969
const INIT_PARAM_FILESYSTEM_DRIVERS = 'MAGE_FILESYSTEM_DRIVERS';
7070

71-
/**
72-
* Initialization parameter for magento mode
73-
*/
74-
const INIT_PARAM_MAGE_MODE = 'MAGE_MODE';
75-
7671
/**
7772
* The initialization parameters (normally come from the $_SERVER)
7873
*

lib/internal/Magento/Framework/Console/Cli.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Magento\Framework\App\DeploymentConfig;
1313
use Magento\Framework\App\Filesystem\DirectoryList;
1414
use Magento\Framework\App\ProductMetadata;
15+
use Magento\Framework\App\State as AppState;
1516
use Magento\Framework\Composer\ComposerJsonFinder;
1617
use Magento\Framework\Config\ConfigOptionsListConstants;
1718
use Magento\Framework\Console\CommandLoader\Aggregate;
@@ -179,7 +180,7 @@ private function initObjectManager()
179180
$requestParams = $this->serviceManager->get('magento-init-params');
180181
$appBootstrapKeys = [
181182
Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS,
182-
Bootstrap::INIT_PARAM_MAGE_MODE,
183+
AppState::PARAM_MODE,
183184
];
184185

185186
foreach ($appBootstrapKeys as $appBootstrapKey) {

0 commit comments

Comments
 (0)