<?php
namespace Plugin\Higashiyama42\EventSubscriber\Controller;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Eccube\Event\TemplateEvent;
use Eccube\Event\EventArgs;
use Eccube\Event\EccubeEvents;
class EntryControllerSubscriber implements EventSubscriberInterface
{
public function __construct(
) {
}
/**
* @return array
*/
public static function getSubscribedEvents()
{
return [
'Entry/index.twig' => ['DefaultEntryIndex', 1],
'Entry/confirm.twig' => ['DefaultEntryConfirm', 1],
];
}
/**
* @param TemplateEvent $event
*/
public function DefaultEntryIndex(TemplateEvent $event)
{
$event->addSnippet('@Higashiyama42/plugin/Entry/index.twig');
}
/**
* @param TemplateEvent $event
*/
public function DefaultEntryConfirm(TemplateEvent $event)
{
$event->addSnippet('@Higashiyama42/plugin/Entry/confirm.twig');
}
}