File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -113,11 +113,15 @@ public function preHandle($app)
113
113
* @param \Illuminate\Contracts\Foundation\Application $app
114
114
*/
115
115
public function postHandle ($ app )
116
- {
117
- //reset debugbar if available
118
-
119
- $ this ->resetProvider ('\Illuminate\Cookie\CookieServiceProvider ' );
120
- $ this ->resetProvider ('\Illuminate\Session\SessionServiceProvider ' );
116
+ {
117
+ //check if this is a lumen framework, if so, do not reset
118
+ //note that lumen does not have the getProvider method
119
+ if (method_exists ($ this ->app , 'getProvider ' )) {
120
+ //reset debugbar if available
121
+ $ this ->resetProvider ('\Illuminate\Cookie\CookieServiceProvider ' );
122
+ $ this ->resetProvider ('\Illuminate\Session\SessionServiceProvider ' );
123
+ }
124
+
121
125
}
122
126
123
127
/**
You can’t perform that action at this time.
0 commit comments