);
$toBeDeleted =
[];
$insertQueue =
new MultiInsertQueryQueue($this->connection, 100, false, true
);
$events =
[];
foreach ($values as $key =>
$value) { $key =
trim($key);
$this->
validate($key,
$salesChannelId);
$event =
new BeforeSystemConfigChangedEvent($key,
$value,
$salesChannelId);
$this->eventDispatcher->
dispatch($event);
// Use modified value provided by potential event subscribers.
$value =
$event->
getValue();
// On null value, delete the config
if ($value === null
) { $toBeDeleted[] =
$key;
$events[] =
new SystemConfigChangedEvent($key,
$value,
$salesChannelId);