|
@@ 695-702 (lines=8) @@
|
| 692 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 693 |
|
}, self::EARLY_EVENT); |
| 694 |
|
|
| 695 |
|
$this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) { |
| 696 |
|
if (!$event->isMasterRequest()) { |
| 697 |
|
return; |
| 698 |
|
} |
| 699 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 700 |
|
$hookpoint = "eccube.event.controller.$route.before"; |
| 701 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 702 |
|
}); |
| 703 |
|
|
| 704 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 705 |
|
if (!$event->isMasterRequest()) { |
|
@@ 704-711 (lines=8) @@
|
| 701 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 702 |
|
}); |
| 703 |
|
|
| 704 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 705 |
|
if (!$event->isMasterRequest()) { |
| 706 |
|
return; |
| 707 |
|
} |
| 708 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 709 |
|
$hookpoint = "eccube.event.controller.$route.after"; |
| 710 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 711 |
|
}); |
| 712 |
|
|
| 713 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 714 |
|
if (!$event->isMasterRequest()) { |