示例#1
0
 public function delete(HookDeleteEvent $event, $eventName, EventDispatcherInterface $dispatcher)
 {
     if (null !== ($hook = HookQuery::create()->findPk($event->getHookId()))) {
         $hook->delete();
         $event->setHook($hook);
         $this->cacheClear($dispatcher);
     }
 }
示例#2
0
文件: Hook.php 项目: alex63530/thelia
 public function delete(HookDeleteEvent $event)
 {
     if (null !== ($hook = HookQuery::create()->findPk($event->getHookId()))) {
         $hook->delete();
         $event->setHook($hook);
         $this->cacheClear($event->getDispatcher());
     }
 }