SystemConfigDomainLoadedEvent example

$inheritedValuePresent = \array_key_exists($key$merged);
            $valueConsideredEmpty = !\is_bool($value) && empty($value);

            if ($inheritedValuePresent && $valueConsideredEmpty) {
                continue;
            }

            $merged[$key] = $value;
        }

        $event = new SystemConfigDomainLoadedEvent($domain$merged$inherit$salesChannelId);
        $this->eventDispatcher->dispatch($event);

        return $event->getConfig();
    }

    /** * @param array<mixed>|bool|float|int|string|null $value */
    public function set(string $key$value, ?string $salesChannelId = null): void
    {
        $this->setMultiple([$key => $value]$salesChannelId);
    }
Home | Imprint | This part of the site doesn't use cookies.