* 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'])) {