src/EventSubscriber/CreateNewWishlistSubscriber.php line 33

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\EventSubscriber;
  4. use BitBag\SyliusWishlistPlugin\Entity\WishlistInterface;
  5. use BitBag\SyliusWishlistPlugin\Factory\WishlistFactoryInterface;
  6. use BitBag\SyliusWishlistPlugin\Repository\WishlistRepositoryInterface;
  7. use BitBag\SyliusWishlistPlugin\Resolver\WishlistsResolverInterface;
  8. use Sylius\Component\Channel\Context\ChannelContextInterface;
  9. use Sylius\Component\Channel\Context\ChannelNotFoundException;
  10. use Sylius\Component\Core\Model\ChannelInterface;
  11. use Sylius\Component\Core\Model\ShopUserInterface;
  12. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  13. use Symfony\Component\HttpFoundation\Cookie;
  14. use Symfony\Component\HttpFoundation\Response;
  15. use Symfony\Component\HttpKernel\Event\RequestEvent;
  16. use Symfony\Component\HttpKernel\Event\ResponseEvent;
  17. use Symfony\Component\HttpKernel\KernelEvents;
  18. use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
  19. final class CreateNewWishlistSubscriber implements EventSubscriberInterface
  20. {
  21.     public static function getSubscribedEvents(): array
  22.     {
  23.         return [
  24.             KernelEvents::REQUEST => [['onKernelRequest'1]],
  25.             KernelEvents::RESPONSE => [['onKernelResponse'0]],
  26.         ];
  27.     }
  28.     public function onKernelRequest(RequestEvent $event): void
  29.     {
  30.         return;
  31.     }
  32.     public function onKernelResponse(ResponseEvent $event): void
  33.     {
  34.         return;
  35.     }
  36. }