Mercurial > hg > isophonics-drupal-site
diff core/modules/config/src/ConfigSubscriber.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 7a779792577d |
children |
line wrap: on
line diff
--- a/core/modules/config/src/ConfigSubscriber.php Thu Apr 26 11:26:54 2018 +0100 +++ b/core/modules/config/src/ConfigSubscriber.php Tue Jul 10 15:07:59 2018 +0100 @@ -18,6 +18,11 @@ * The config import event. */ public function onConfigImporterValidate(ConfigImporterEvent $event) { + // Make sure config syncs performed via the Config UI don't break, but + // don't worry about syncs initiated via the command line. + if (PHP_SAPI === 'cli') { + return; + } $importer = $event->getConfigImporter(); $core_extension = $importer->getStorageComparer()->getSourceStorage()->read('core.extension'); if (!isset($core_extension['module']['config'])) {