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