app/Customize/EventListener/OrderBunkatsuEventListener.php line 26

Open in your IDE?
  1. <?php
  2. namespace Customize\EventListener;
  3. use Eccube\Event\TemplateEvent;
  4. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  5. class OrderBunkatsuEventListener implements EventSubscriberInterface
  6. {
  7.     /**
  8.      * @inheritDoc
  9.      */
  10.     public static function getSubscribedEvents()
  11.     {
  12.         // TODO: Implement getSubscribedEvents() method.
  13.         return [
  14.             'Shopping/confirm.twig' => 'onShoppingConfirm',
  15.         ];
  16.     }
  17.     /**
  18.      * @param TemplateEvent $event
  19.      * @return void
  20.      */
  21.     public function onShoppingConfirm(TemplateEvent $event)
  22.     {
  23.         $event->addSnippet('OrderBunkatsu/confirm.twig');
  24.     }
  25. }