src/EventSubscriber/ResponseSubscriber.php line 24

Open in your IDE?
  1. <?php
  2. namespace App\EventSubscriber;
  3. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  4. use Symfony\Component\HttpKernel\Event\ResponseEvent;
  5. use Symfony\Component\HttpKernel\KernelEvents;
  6. use App\Service\jsonResponse;
  7. use App\Service\formatTime;
  8. class ResponseSubscriber implements EventSubscriberInterface
  9. {
  10.     public static function getSubscribedEvents()
  11.     {
  12.         return [
  13.             KernelEvents::RESPONSE => [
  14.                 ['formatTimeResponse'10],
  15.             ],
  16.         ];
  17.     }
  18.     public function formatTimeResponse(ResponseEvent $event)
  19.     {
  20.     }
  21. }