Skip to content

Commit 921c270

Browse files
author
Ivan Gavryshko
committed
MAGETWO-45093: Magento is stuck in Maintenance mode if Backup is created during disabling module via Web Setup Wizard
- CR fixes
1 parent 6f223ad commit 921c270

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

setup/src/Magento/Setup/Model/Cron/JobComponentUninstall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class JobComponentUninstall extends AbstractJob
3939
/**
4040
* @var \Magento\Framework\ObjectManagerInterface
4141
*/
42-
private $objectManager;
42+
protected $objectManager;
4343

4444
/**
4545
* @var \Magento\Setup\Model\Updater

setup/src/Magento/Setup/Mvc/Bootstrap/InitParamListener.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class InitParamListener implements ListenerAggregateInterface, FactoryInterface
4141
private $listeners = [];
4242

4343
/**
44-
* List of controllers which should be skipped
44+
* List of controllers which should be skipped from auth check
4545
*
4646
* @var array
4747
*/
@@ -135,14 +135,8 @@ public function authPreDispatch($event)
135135
$response = $event->getResponse();
136136
$response->getHeaders()->addHeaderLine('Location', 'index.php/session/unlogin');
137137
$response->setStatusCode(302);
138-
$response->sendHeaders();
139138

140-
$stopCallBack = function($event) use ($response) {
141-
$event->stopPropagation();
142-
return $response;
143-
};
144-
145-
$application->getEventManager()->attach(MvcEvent::EVENT_ROUTE, $stopCallBack, -10000);
139+
$event->stopPropagation();
146140
return $response;
147141
}
148142
}

0 commit comments

Comments
 (0)