File tree 1 file changed +8
-8
lines changed
src/Codeception/Lib/Connector
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,16 @@ public function __construct(
31
31
parent ::__construct ($ kernel );
32
32
$ this ->followRedirects ();
33
33
$ this ->container = $ this ->getContainer ();
34
- $ this ->rebootKernel ();
34
+ $ this ->rebootKernel (); // Ensure the profiler exists
35
35
}
36
36
37
37
/** @param Request $request */
38
38
protected function doRequest (object $ request ): Response
39
39
{
40
- if ($ this ->rebootable ) {
41
- if ($ this ->hasPerformedRequest ) {
42
- $ this ->rebootKernel ();
43
- } else {
44
- $ this ->hasPerformedRequest = true ;
45
- }
40
+ if ($ this ->hasPerformedRequest && $ this ->rebootable ) {
41
+ $ this ->rebootKernel ();
42
+ } else {
43
+ $ this ->hasPerformedRequest = true ;
46
44
}
47
45
48
46
return parent ::doRequest ($ request );
@@ -66,7 +64,9 @@ public function rebootKernel(): void
66
64
}
67
65
68
66
$ this ->persistDoctrineConnections ();
69
- $ this ->kernel ->reboot (null );
67
+ $ this ->kernel ->boot ();
68
+ $ this ->kernel ->shutdown ();
69
+ $ this ->kernel ->boot ();
70
70
$ this ->container = $ this ->getContainer ();
71
71
72
72
foreach ($ this ->persistentServices as $ serviceName => $ service ) {
You can’t perform that action at this time.
0 commit comments