src/EventSubscriber/ProdsImportedSubscriber.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\EventSubscriber;
  3. use App\Service\Auth\Auth;
  4. use App\Service\Cart\Cart;
  5. use App\Event\ProdsImported;
  6. use Symfony\Component\Security\Core\Security;
  7. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  8. /** @package App\EventSubscriber */
  9. class ProdsImportedSubscriber implements EventSubscriberInterface
  10. {
  11.     public function __construct(Cart $CartAuth $AuthSecurity $security)
  12.     {
  13.     }
  14.     public function onProdsImported(ProdsImported $event): void
  15.     {
  16.         //TODO
  17.         return;
  18.         $order $event->getOrder();        
  19.         echo 111;die();        
  20.     }
  21.     public static function getSubscribedEvents(): array
  22.     {
  23.         return [
  24.             ProdsImported::NAME => 'onProdsImported',
  25.         ];
  26.     }
  27. }