|
@@ 95-102 (lines=8) @@
|
| 92 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 93 |
|
}, Application::EARLY_EVENT); |
| 94 |
|
|
| 95 |
|
$app->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) { |
| 96 |
|
if (!$event->isMasterRequest()) { |
| 97 |
|
return; |
| 98 |
|
} |
| 99 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 100 |
|
$hookpoint = "eccube.event.controller.$route.before"; |
| 101 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 102 |
|
}); |
| 103 |
|
|
| 104 |
|
$app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 105 |
|
if (!$event->isMasterRequest()) { |
|
@@ 104-111 (lines=8) @@
|
| 101 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 102 |
|
}); |
| 103 |
|
|
| 104 |
|
$app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 105 |
|
if (!$event->isMasterRequest()) { |
| 106 |
|
return; |
| 107 |
|
} |
| 108 |
|
$route = $event->getRequest()->attributes->get('_route'); |
| 109 |
|
$hookpoint = "eccube.event.controller.$route.after"; |
| 110 |
|
$app['eccube.event.dispatcher']->dispatch($hookpoint, $event); |
| 111 |
|
}); |
| 112 |
|
|
| 113 |
|
$app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) { |
| 114 |
|
if (!$event->isMasterRequest()) { |