File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
setup/src/Magento/Setup/Model Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 56
56
use Magento \Setup \Validator \DbValidator ;
57
57
use Magento \Store \Model \Store ;
58
58
use Magento \RemoteStorage \Setup \ConfigOptionsList as RemoteStorageValidator ;
59
+ use ReflectionException ;
59
60
60
61
/**
61
62
* Class Installer contains the logic to install Magento application.
@@ -1219,7 +1220,12 @@ public function installSearchConfiguration($data)
1219
1220
*/
1220
1221
public function validateRemoteStorageConfiguration (array $ data )
1221
1222
{
1222
- $ remoteStorageValidator = $ this ->objectManagerProvider ->get ()->get (RemoteStorageValidator::class);
1223
+ try {
1224
+ $ remoteStorageValidator = $ this ->objectManagerProvider ->get ()->get (RemoteStorageValidator::class);
1225
+ } catch (ReflectionException $ e ) { // RemoteStorage module is not enabled; return early
1226
+ return ;
1227
+ }
1228
+
1223
1229
$ validationErrors = $ remoteStorageValidator ->validate ($ data , $ this ->deploymentConfig );
1224
1230
1225
1231
if (!empty ($ validationErrors )) {
You can’t perform that action at this time.
0 commit comments