public function setValue(ConfigUpdateEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        if (null !== $config = ConfigQuery::create()->findPk($event->getConfigId())) {
            if ($event->getValue() !== $config->getValue()) {
                $config->setDispatcher($dispatcher)->setValue($event->getValue())->save();

                $event->setConfig($config);
            }
        }
    }
public function setValue(ConfigUpdateEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        if (null !== $config = ConfigQuery::create()->findPk($event->getConfigId())) {
            if ($event->getValue() !== $config->getValue()) {
                $config->setDispatcher($dispatcher)->setValue($event->getValue())->save();

                $event->setConfig($config);
            }
        }
    }
public function setValue ( ConfigUpdateEvent $ event , $ eventName , EventDispatcherInterface $ dispatcher ) { if ( null !== $ config = ConfigQuery :: create ( ) -> findPk ( $ event -> getConfigId ( ) ) ) { if ( $ event -> getValue ( ) !== $ config -> getValue ( ) ) { $ config -> setDispatcher ( $ dispatcher ) -> setValue ( $ event -> getValue ( ) ) -> save ( ) ; $ event -> setConfig ( $ config ) ; } } }
Change a configuration entry value

@param \Thelia\Core\Event\Config\ConfigUpdateEvent $event
@param $eventName
@param EventDispatcherInterface $dispatcher
Change a configuration entry value