|
@@ 681-688 (lines=8) @@
|
| 678 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 679 |
|
}, self::EARLY_EVENT); |
| 680 |
|
|
| 681 |
|
$this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) { |
| 682 |
|
if (!$event->isMasterRequest()) { |
| 683 |
|
return; |
| 684 |
|
} |
| 685 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 686 |
|
$hookpoint = "eccube.event.controller.$route.before"; |
| 687 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 688 |
|
}); |
| 689 |
|
|
| 690 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 691 |
|
if (!$event->isMasterRequest()) { |
|
@@ 690-697 (lines=8) @@
|
| 687 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 688 |
|
}); |
| 689 |
|
|
| 690 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 691 |
|
if (!$event->isMasterRequest()) { |
| 692 |
|
return; |
| 693 |
|
} |
| 694 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 695 |
|
$hookpoint = "eccube.event.controller.$route.after"; |
| 696 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 697 |
|
}); |
| 698 |
|
|
| 699 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 700 |
|
if (!$event->isMasterRequest()) { |