<?php 
 
/* 
 * This file is part of EC-CUBE 
 * 
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved. 
 * 
 * http://www.lockon.co.jp/ 
 * 
 * For the full copyright and license information, please view the LICENSE 
 * file that was distributed with this source code. 
 */ 
 
namespace Plugin\Noshidelivery; 
 
use Eccube\Event\TemplateEvent; 
use Symfony\Component\EventDispatcher\EventSubscriberInterface; 
 
class NoshideliveryEvent implements EventSubscriberInterface 
{ 
    public static function getSubscribedEvents() 
    { 
        return [ 
            'Shopping/index.twig' => 'onNoshideliveryShopping', 
            'Shopping/confirm.twig' => 'onNoshideliveryConfirm', 
            '@admin/Order/edit.twig' => 'onAdminNoshideliveryEdit', 
            '@admin/Order/shipping.twig' => 'onAdminNoshideliveryShipping', 
            'Mypage/history.twig' => 'onNoshideliveryHistory', 
        ]; 
    } 
 
    public function onNoshideliveryShopping(TemplateEvent $event) 
    { 
        $event->addSnippet('@Noshidelivery/front/add_shopping.twig'); 
 
    } 
     
    public function onNoshideliveryConfirm(TemplateEvent $event) 
    { 
        $event->addSnippet('@Noshidelivery/front/add_confirm.twig'); 
 
    } 
     
    public function onAdminNoshideliveryEdit(TemplateEvent $event) 
    { 
        $event->addSnippet('@Noshidelivery/admin/add_edit.twig'); 
 
    } 
     
    public function onAdminNoshideliveryShipping(TemplateEvent $event) 
    { 
        $event->addSnippet('@Noshidelivery/admin/add_shipping.twig'); 
 
    } 
     
    public function onNoshideliveryHistory(TemplateEvent $event) 
    { 
        $event->addSnippet('@Noshidelivery/front/add_history.twig'); 
 
    } 
     
}