app/Plugin/Higashiyama42/EventSubscriber/Controller/ShoppingControllerSubscriber.php line 39

Open in your IDE?
  1. <?php
  2. namespace Plugin\Higashiyama42\EventSubscriber\Controller;
  3. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  4. use Eccube\Event\TemplateEvent;
  5. use Eccube\Event\EventArgs;
  6. use Eccube\Event\EccubeEvents;
  7. class ShoppingControllerSubscriber implements EventSubscriberInterface
  8. {
  9.     public function __construct(
  10.     ) {
  11.     }
  12.     /**
  13.      * @return array
  14.      */
  15.     public static function getSubscribedEvents()
  16.     {
  17.         return [
  18.             'Shopping/index.twig' => ['DefaultShoppingIndex'1],
  19.             'Shopping/confirm.twig' => ['DefaultShoppingConfirm'1],
  20.         ];
  21.     }
  22.     /**
  23.      * @param TemplateEvent $event
  24.      */
  25.     public function DefaultShoppingIndex(TemplateEvent $event)
  26.     {
  27.         $event->addSnippet('@Higashiyama42/plugin/Shopping/index.twig');
  28.     }
  29.     /**
  30.      * @param TemplateEvent $event
  31.      */
  32.     public function DefaultShoppingConfirm(TemplateEvent $event)
  33.     {
  34.         $event->addSnippet('@Higashiyama42/plugin/Shopping/confirm.twig');
  35.     }
  36. }