|
@@ 599-606 (lines=8) @@
|
| 596 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 597 |
|
}, self::EARLY_EVENT); |
| 598 |
|
|
| 599 |
|
$this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) { |
| 600 |
|
if (!$event->isMasterRequest()) { |
| 601 |
|
return; |
| 602 |
|
} |
| 603 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 604 |
|
$hookpoint = "eccube.event.controller.$route.before"; |
| 605 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 606 |
|
}); |
| 607 |
|
|
| 608 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 609 |
|
if (!$event->isMasterRequest()) { |
|
@@ 608-615 (lines=8) @@
|
| 605 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 606 |
|
}); |
| 607 |
|
|
| 608 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 609 |
|
if (!$event->isMasterRequest()) { |
| 610 |
|
return; |
| 611 |
|
} |
| 612 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 613 |
|
$hookpoint = "eccube.event.controller.$route.after"; |
| 614 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 615 |
|
}); |
| 616 |
|
|
| 617 |
|
$this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 618 |
|
if (!$event->isMasterRequest()) { |