public function modify(ConfigUpdateEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        if (null !== $config = ConfigQuery::create()->findPk($event->getConfigId())) {
            $config->setDispatcher($dispatcher)
                ->setName($event->getEventName())
                ->setValue($event->getValue())
                ->setHidden($event->getHidden())
                ->setSecured($event->getSecured())
                ->setLocale($event->getLocale())
                ->setTitle($event->getTitle())
                ->setDescription($event->getDescription())
                ->setChapo($event->getChapo())
                ->setPostscriptum($event->getPostscriptum())
            ->save();

            $event->setConfig($config);
        }
    }
public function modify(ConfigUpdateEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        if (null !== $config = ConfigQuery::create()->findPk($event->getConfigId())) {
            $config->setDispatcher($dispatcher)
                ->setName($event->getEventName())
                ->setValue($event->getValue())
                ->setHidden($event->getHidden())
                ->setSecured($event->getSecured())
                ->setLocale($event->getLocale())
                ->setTitle($event->getTitle())
                ->setDescription($event->getDescription())
                ->setChapo($event->getChapo())
                ->setPostscriptum($event->getPostscriptum())
            ->save();

            $event->setConfig($config);
        }
    }
public function modify ( ConfigUpdateEvent $ event , $ eventName , EventDispatcherInterface $ dispatcher ) { if ( null !== $ config = ConfigQuery :: create ( ) -> findPk ( $ event -> getConfigId ( ) ) ) { $ config -> setDispatcher ( $ dispatcher ) -> setName ( $ event -> getEventName ( ) ) -> setValue ( $ event -> getValue ( ) ) -> setHidden ( $ event -> getHidden ( ) ) -> setSecured ( $ event -> getSecured ( ) ) -> setLocale ( $ event -> getLocale ( ) ) -> setTitle ( $ event -> getTitle ( ) ) -> setDescription ( $ event -> getDescription ( ) ) -> setChapo ( $ event -> getChapo ( ) ) -> setPostscriptum ( $ event -> getPostscriptum ( ) ) -> save ( ) ; $ event -> setConfig ( $ config ) ; } }
Change a configuration entry

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