bundles/ADAS/eBudzetBundle/Services/Wnioski/Event/Edited/WniosekEditedSubscriber.php line 18

Open in your IDE?
  1. <?php
  2. namespace ADAS\eBudzetBundle\Services\Wnioski\Event\Edited;
  3. use ADAS\eBudzetBundle\Entity\BuWnioski;
  4. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  5. abstract class WniosekEditedSubscriber implements EventSubscriberInterface
  6. {
  7.     public static function getSubscribedEvents()
  8.     {
  9.         return [
  10.             WniosekEditedEvent::class => 'onEvent'
  11.         ];
  12.     }
  13.     public function onEvent(WniosekEditedEvent $event) {
  14.         $this->onWniosekEdited($event->getWniosek());
  15.     }
  16.     abstract protected function onWniosekEdited(BuWnioski $wniosek);
  17. }