<?php
namespace ADAS\eBudzetBundle\Services\Wnioski\Event\Edited;
use ADAS\eBudzetBundle\Entity\BuWnioski;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
abstract class WniosekEditedSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [
WniosekEditedEvent::class => 'onEvent'
];
}
public function onEvent(WniosekEditedEvent $event) {
$this->onWniosekEdited($event->getWniosek());
}
abstract protected function onWniosekEdited(BuWnioski $wniosek);
}