<?php
/**
* This file is part of payjp4
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\payjp4\EventSubscriber;
use Eccube\Event\TemplateEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class ShoppingEventSubscriber implements EventSubscriberInterface
{
/**
* @inheritDoc
*/
public static function getSubscribedEvents()
{
// TODO: Implement getSubscribedEvents() method.
return [
'Shopping/index.twig' => 'onTemplateShoppingIndex'
];
}
public function onTemplateShoppingIndex(TemplateEvent $event)
{
$event->addSnippet('@payjp4/Shopping/credit.twig');
}
}