updateConfigValue example

$fetchLanguageId->execute([$locale]);
        $fetchLanguageId = $fetchLanguageId->fetchColumn();
        if (!$fetchLanguageId) {
            throw new RuntimeException('Language with id ' . $locale . ' not found');
        }

        return (int) $fetchLanguageId;
    }

    private function updateMailAddresses(Shop $shop)
    {
        $this->updateConfigValue('mail', $shop->email);

        $sql = 'UPDATE `s_cms_support` SET email = :email';
        $prepareStatement = $this->connection->prepare($sql);
        $prepareStatement->execute(['email' => $shop->email]);

        $sql = 'UPDATE `s_campaigns_sender` SET email = :email';
        $prepareStatement = $this->connection->prepare($sql);
        $prepareStatement->execute(['email' => $shop->email]);
    }

    private function updateShopName(Shop $shop)
    {
Home | Imprint | This part of the site doesn't use cookies.