<?php
namespace Plugin\InvoiceForMypage42\EventSubscriber\Controller\Mypage;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Eccube\Event\TemplateEvent;
class MypageControllerSubscriber implements EventSubscriberInterface
{
/**
* Event constructor.
*/
public function __construct(
) {
}
/**
* @return array
*/
public static function getSubscribedEvents()
{
return [
'Mypage/history.twig' => ['DefaultMypageHistory', 1],
'Mypage/teiki_history.twig' => ['DefaultMypageHistory', 1],
];
}
public function DefaultMypageHistory(TemplateEvent $event)
{
$event->addSnippet('@InvoiceForMypage42/default/Mypage/history.twig');
}
}