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