Skip to content

Commit 007534b

Browse files
committed
Use kernel.handled event
1 parent 77be517 commit 007534b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">=5.4.0",
14-
"illuminate/support": "5.0.x",
14+
"illuminate/support": "~5.0.17",
1515
"symfony/finder": "~2.6",
1616
"maximebf/debugbar": "~1.10.2"
1717
},

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function boot()
101101
$debugbar = $this->app['debugbar'];
102102
$debugbar->boot();
103103

104-
$app['router']->after(
104+
$app['events']->listen('kernel.handled',
105105
function ($request, $response) use ($debugbar) {
106106
$debugbar->modifyResponse($request, $response);
107107
}

0 commit comments

Comments
 (0)