<?php
namespace App\Event\Product\Edition;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class DeleteSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents(): array
{
return [
'product_edition.pre_delete' => 'onPreDelete',
'product_edition.post_delete' => 'onPostDelete'
];
}
public function onPreDelete(PreDeleteEvent $event)
{
// $edition = $event->getEdition();
}
public function onPostDelete(PostDeleteEvent $event)
{
// $edition = $event->getEdition();
}
}