File tree Expand file tree Collapse file tree 2 files changed +1
-103
lines changed
src/Codeception/Lib/Connector Expand file tree Collapse file tree 2 files changed +1
-103
lines changed Original file line number Diff line number Diff line change 6
6
7
7
use Closure ;
8
8
use Codeception \Lib \Connector \Laravel \ExceptionHandlerDecorator as LaravelExceptionHandlerDecorator ;
9
- use Codeception \Lib \Connector \Laravel6 \ExceptionHandlerDecorator as Laravel6ExceptionHandlerDecorator ;
10
9
use Codeception \Module \Laravel as LaravelModule ;
11
10
use Codeception \Stub ;
12
11
use Dotenv \Dotenv ;
@@ -154,14 +153,7 @@ private function initialize(SymfonyRequest $request = null): void
154
153
155
154
$ this ->getEvents ()->listen ('* ' , $ listener );
156
155
157
- // Replace the Laravel exception handler with our decorated exception handler,
158
- // so exceptions can be intercepted for the disable_exception_handling functionality.
159
- if (version_compare (Application::VERSION , '7.0.0 ' , '< ' )) {
160
- $ decorator = new Laravel6ExceptionHandlerDecorator ($ this ->getExceptionHandler ());
161
- } else {
162
- $ decorator = new LaravelExceptionHandlerDecorator ($ this ->getExceptionHandler ());
163
- }
164
-
156
+ $ decorator = new LaravelExceptionHandlerDecorator ($ this ->getExceptionHandler ());
165
157
$ decorator ->exceptionHandlingDisabled ($ this ->exceptionHandlingDisabled );
166
158
$ this ->app ->instance (ExceptionHandler::class, $ decorator );
167
159
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments