public function delete(ConfigDeleteEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        if (null !== ($config = ConfigQuery::create()->findPk($event->getConfigId()))) {
            if (!$config->getSecured()) {
                $config->setDispatcher($dispatcher)->delete();

                $event->setConfig($config);
            }
        }
    }
public function delete(ConfigDeleteEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        if (null !== ($config = ConfigQuery::create()->findPk($event->getConfigId()))) {
            if (!$config->getSecured()) {
                $config->setDispatcher($dispatcher)->delete();

                $event->setConfig($config);
            }
        }
    }
public function delete ( ConfigDeleteEvent $ event , $ eventName , EventDispatcherInterface $ dispatcher ) { if ( null !== ( $ config = ConfigQuery :: create ( ) -> findPk ( $ event -> getConfigId ( ) ) ) ) { if ( ! $ config -> getSecured ( ) ) { $ config -> setDispatcher ( $ dispatcher ) -> delete ( ) ; $ event -> setConfig ( $ config ) ; } } }
Delete a configuration entry

@param \Thelia\Core\Event\Config\ConfigDeleteEvent $event
@param $eventName
@param EventDispatcherInterface $dispatcher
Delete a configuration entry