app/Plugin/TeikiOrder42/EventSubscriber/Controller/Mypage/MypageControllerSubscriber.php line 34

Open in your IDE?
  1. <?php
  2. namespace Plugin\TeikiOrder42\EventSubscriber\Controller\Mypage;
  3. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  4. use Doctrine\ORM\EntityManagerInterface;
  5. use Eccube\Common\EccubeConfig;
  6. use Eccube\Event\TemplateEvent;
  7. use Eccube\Event\EventArgs;
  8. use Eccube\Event\EccubeEvents;
  9. use Eccube\Service\CartService;
  10. use Eccube\Repository\CartItemRepository;
  11. class MypageControllerSubscriber implements EventSubscriberInterface
  12. {
  13.     /**
  14.      * Event constructor.
  15.      */
  16.     public function __construct(
  17.     ) {
  18.     }
  19.     /**
  20.      * @return array
  21.      */
  22.     public static function getSubscribedEvents()
  23.     {
  24.         return [
  25.             EccubeEvents::FRONT_MYPAGE_MYPAGE_INDEX_SEARCH => 'FrontMypageMypageIndexSearch',
  26.         ];
  27.     }
  28.     public function FrontMypageMypageIndexSearch(EventArgs $event)
  29.     {
  30.         $qb $event->getArgument('qb');
  31.         $qb->andWhere('o.teiki_flg != 1');
  32.         $qb->andWhere('o.OrderStatus != 3');
  33.     }
  34. }