|
@@ 549-552 (lines=4) @@
|
| 546 |
|
$app['eccube.event.dispatcher']->dispatch($event); |
| 547 |
|
}); |
| 548 |
|
|
| 549 |
|
$this->after(function(Request $request, Response $response, \Silex\Application $app) { |
| 550 |
|
$event = 'eccube.event.controller.'.$request->attributes->get('_route').'.after'; |
| 551 |
|
$app['eccube.event.dispatcher']->dispatch($event); |
| 552 |
|
}); |
| 553 |
|
|
| 554 |
|
$this->after(function(Request $request, Response $response, \Silex\Application $app) { |
| 555 |
|
$app['eccube.event.dispatcher']->dispatch('eccube.event.app.after'); |
|
@@ 558-561 (lines=4) @@
|
| 555 |
|
$app['eccube.event.dispatcher']->dispatch('eccube.event.app.after'); |
| 556 |
|
}, self::LATE_EVENT); |
| 557 |
|
|
| 558 |
|
$this->finish(function(Request $request, Response $response, \Silex\Application $app) { |
| 559 |
|
$event = 'eccube.event.controller.'.$request->attributes->get('_route').'.finish'; |
| 560 |
|
$app['eccube.event.dispatcher']->dispatch($event); |
| 561 |
|
}); |
| 562 |
|
|
| 563 |
|
$app = $this; |
| 564 |
|
$this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) { |