|
@@ 625-632 (lines=8) @@
|
| 622 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 623 |
|
}, self::EARLY_EVENT); |
| 624 |
|
|
| 625 |
|
$this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) { |
| 626 |
|
if (!$event->isMasterRequest()) { |
| 627 |
|
return; |
| 628 |
|
} |
| 629 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 630 |
|
$hookpoint = "eccube.event.controller.$route.before"; |
| 631 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 632 |
|
}); |
| 633 |
|
|
| 634 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 635 |
|
if (!$event->isMasterRequest()) { |
|
@@ 634-641 (lines=8) @@
|
| 631 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 632 |
|
}); |
| 633 |
|
|
| 634 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 635 |
|
if (!$event->isMasterRequest()) { |
| 636 |
|
return; |
| 637 |
|
} |
| 638 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 639 |
|
$hookpoint = "eccube.event.controller.$route.after"; |
| 640 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 641 |
|
}); |
| 642 |
|
|
| 643 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 644 |
|
if (!$event->isMasterRequest()) { |