X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fconfig%2Fsrc%2FConfigSubscriber.php;fp=web%2Fcore%2Fmodules%2Fconfig%2Fsrc%2FConfigSubscriber.php;h=779bab67ddcbb71c8dbb567f9842c0811eb29fa4;hp=7e4c51ddac37f36d3869b514b1ab595316da90e8;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/config/src/ConfigSubscriber.php b/web/core/modules/config/src/ConfigSubscriber.php index 7e4c51dda..779bab67d 100644 --- a/web/core/modules/config/src/ConfigSubscriber.php +++ b/web/core/modules/config/src/ConfigSubscriber.php @@ -18,6 +18,11 @@ class ConfigSubscriber extends ConfigImportValidateEventSubscriberBase { * 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'])) {