app/Plugin/InvoiceForMypage42/EventSubscriber/Controller/Mypage/MypageControllerSubscriber.php line 29

Open in your IDE?
  1. <?php
  2. namespace Plugin\InvoiceForMypage42\EventSubscriber\Controller\Mypage;
  3. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  4. use Eccube\Event\TemplateEvent;
  5. class MypageControllerSubscriber implements EventSubscriberInterface
  6. {
  7.     /**
  8.      * Event constructor.
  9.      */
  10.     public function __construct(
  11.     ) {
  12.     }
  13.     /**
  14.      * @return array
  15.      */
  16.     public static function getSubscribedEvents()
  17.     {
  18.         return [
  19.             'Mypage/history.twig' => ['DefaultMypageHistory'1],
  20.             'Mypage/teiki_history.twig' => ['DefaultMypageHistory'1],
  21.         ];
  22.     }
  23.     public function DefaultMypageHistory(TemplateEvent $event)
  24.     {
  25.         $event->addSnippet('@InvoiceForMypage42/default/Mypage/history.twig');
  26.     }
  27. }