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