public function create(ConfigCreateEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        $config = new ConfigModel();

        $config->setDispatcher($dispatcher)
            ->setName($event->getEventName())
            ->setValue($event->getValue())
            ->setLocale($event->getLocale())
            ->setTitle($event->getTitle())
            ->setHidden($event->getHidden())
            ->setSecured($event->getSecured())
        ->save();

        $event->setConfig($config);
    }
public function create(ConfigCreateEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        $config = new ConfigModel();

        $config->setDispatcher($dispatcher)
            ->setName($event->getEventName())
            ->setValue($event->getValue())
            ->setLocale($event->getLocale())
            ->setTitle($event->getTitle())
            ->setHidden($event->getHidden())
            ->setSecured($event->getSecured())
        ->save();

        $event->setConfig($config);
    }
public function create ( ConfigCreateEvent $ event , $ eventName , EventDispatcherInterface $ dispatcher ) { $ config = new ConfigModel ( ) ; $ config -> setDispatcher ( $ dispatcher ) -> setName ( $ event -> getEventName ( ) ) -> setValue ( $ event -> getValue ( ) ) -> setLocale ( $ event -> getLocale ( ) ) -> setTitle ( $ event -> getTitle ( ) ) -> setHidden ( $ event -> getHidden ( ) ) -> setSecured ( $ event -> getSecured ( ) ) -> save ( ) ; $ event -> setConfig ( $ config ) ; }
Create a new configuration entry

@param \Thelia\Core\Event\Config\ConfigCreateEvent $event
@param $eventName
@param EventDispatcherInterface $dispatcher
Create a new configuration entry