File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,15 @@ public function boot(){
234
234
$ renderer ->setBaseUrl (asset ('packages/barryvdh/laravel-debugbar ' ));
235
235
$ renderer ->setIncludeVendors ($ this ->app ['config ' ]->get ('laravel-debugbar::config.include_vendors ' , true ));
236
236
237
+ if (version_compare ($ app ::VERSION , '4.1 ' , '>= ' )){
238
+ $ app ->middleware ('Barryvdh\Debugbar\Middleware ' , array ($ debugbar ));
239
+ }else {
240
+ $ app ->after (function ($ request , $ response ) use ($ debugbar )
241
+ {
242
+ $ debugbar ->modifyResponse ($ request , $ response );
243
+ });
244
+ }
245
+
237
246
$ this ->booted = true ;
238
247
239
248
}
Original file line number Diff line number Diff line change @@ -52,17 +52,6 @@ public function register()
52
52
});
53
53
$ this ->commands ('command.debugbar.publish ' );
54
54
55
- $ debugbar = $ this ->app ['debugbar ' ];
56
- $ app = $ this ->app ;
57
-
58
- if (version_compare ($ app ::VERSION , '4.1 ' , '>= ' )){
59
- $ this ->app ->middleware ('Barryvdh\Debugbar\Middleware ' , array ($ debugbar ));
60
- }else {
61
- $ this ->app ->after (function ($ request , $ response ) use ($ debugbar )
62
- {
63
- $ debugbar ->modifyResponse ($ request , $ response );
64
- });
65
- }
66
55
67
56
}
68
57
You can’t perform that action at this time.
0 commit comments