<?php
namespace Plugin\Trumbowyg42\EventSubscriber\Admin;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\ErrorHandler\Error\ClassNotFoundError;
use Eccube\Event\TemplateEvent;
use Eccube\Event\EventArgs;
use Eccube\Event\EccubeEvents;
use Eccube\Repository\ClassCategoryRepository;
class EventCalendarControllerSubscriber implements EventSubscriberInterface
{
/**
* @return array
*/
public static function getSubscribedEvents()
{
return [
'@EventCalendar42/admin/Content/event_edit.twig' => ['AdminEventEdit', 1],
];
}
/**
* @param TemplateEvent $event
*/
public function AdminEventEdit(TemplateEvent $event)
{
$event->addSnippet('@Trumbowyg42/admin/Content/event_edit.twig');
}
}