@@ 601-608 (lines=8) @@ | ||
598 | $app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
|
599 | }, self::EARLY_EVENT); |
|
600 | ||
601 | $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) { |
|
602 | if (!$event->isMasterRequest()) { |
|
603 | return; |
|
604 | } |
|
605 | $route = $event->getRequest()->attributes->get('_route'); |
|
606 | $hookpoint = "eccube.event.controller.$route.before"; |
|
607 | $app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
|
608 | }); |
|
609 | ||
610 | $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
|
611 | if (!$event->isMasterRequest()) { |
|
@@ 610-617 (lines=8) @@ | ||
607 | $app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
|
608 | }); |
|
609 | ||
610 | $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
|
611 | if (!$event->isMasterRequest()) { |
|
612 | return; |
|
613 | } |
|
614 | $route = $event->getRequest()->attributes->get('_route'); |
|
615 | $hookpoint = "eccube.event.controller.$route.after"; |
|
616 | $app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
|
617 | }); |
|
618 | ||
619 | $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
|
620 | if (!$event->isMasterRequest()) { |