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