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(
35
35
public function indexAction ()
36
36
{
37
37
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
+
38
42
$ this ->objectManager ->create (
39
43
'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
+ ]
41
48
);
42
49
if (!$ this ->objectManager ->get ('Magento\Backend\Model\Auth ' )->isLoggedIn ()) {
43
50
$ view = new ViewModel ();
You can’t perform that action at this time.
0 commit comments