@@ 665-672 (lines=8) @@ | ||
662 | $app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
|
663 | }, self::EARLY_EVENT); |
|
664 | ||
665 | $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) { |
|
666 | if (!$event->isMasterRequest()) { |
|
667 | return; |
|
668 | } |
|
669 | $route = $event->getRequest()->attributes->get('_route'); |
|
670 | $hookpoint = "eccube.event.controller.$route.before"; |
|
671 | $app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
|
672 | }); |
|
673 | ||
674 | $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
|
675 | if (!$event->isMasterRequest()) { |
|
@@ 674-681 (lines=8) @@ | ||
671 | $app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
|
672 | }); |
|
673 | ||
674 | $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
|
675 | if (!$event->isMasterRequest()) { |
|
676 | return; |
|
677 | } |
|
678 | $route = $event->getRequest()->attributes->get('_route'); |
|
679 | $hookpoint = "eccube.event.controller.$route.after"; |
|
680 | $app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
|
681 | }); |
|
682 | ||
683 | $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
|
684 | if (!$event->isMasterRequest()) { |