File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
setup/src/Magento/Setup/Controller Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,16 @@ public function __construct(
3535 public function indexAction ()
3636 {
3737 if ($ this ->objectManager ->get ('Magento\Framework\App\DeploymentConfig ' )->isAvailable ()) {
38+ /** @var \Magento\Framework\App\State $adminAppState */
39+ $ adminAppState = $ this ->objectManager ->get ('Magento\Framework\App\State ' );
40+ $ adminAppState ->setAreaCode (\Magento \Framework \App \Area::AREA_ADMIN );
41+
3842 $ this ->objectManager ->create (
3943 'Magento\Backend\Model\Auth\Session ' ,
40- ['sessionConfig ' => $ this ->objectManager ->get ('Magento\Backend\Model\Session\AdminConfig ' )]
44+ [
45+ 'sessionConfig ' => $ this ->objectManager ->get ('Magento\Backend\Model\Session\AdminConfig ' ),
46+ 'appState ' => $ adminAppState
47+ ]
4148 );
4249 if (!$ this ->objectManager ->get ('Magento\Backend\Model\Auth ' )->isLoggedIn ()) {
4350 $ view = new ViewModel ();
You can’t perform that action at this time.
0 commit comments