<?php
namespace App\EventSubscriber;
use Score\CmsBundle\Event\ArticleEditEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class ArticleEditSubscriber implements EventSubscriberInterface
{
public function onArticleEditEvent(ArticleEditEvent $event): void
{
die('dddd');
}
public static function getSubscribedEvents(): array
{
return [
ArticleEditEvent::class => 'onArticleEditEvent',
];
}
}