<?php
namespace Customize\EventListener;
use Eccube\Event\TemplateEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class OrderBunkatsuEventListener implements EventSubscriberInterface
{
/**
* @inheritDoc
*/
public static function getSubscribedEvents()
{
// TODO: Implement getSubscribedEvents() method.
return [
'Shopping/confirm.twig' => 'onShoppingConfirm',
];
}
/**
* @param TemplateEvent $event
* @return void
*/
public function onShoppingConfirm(TemplateEvent $event)
{
$event->addSnippet('OrderBunkatsu/confirm.twig');
}
}