File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 44
44
symfony : ' 6.1.*'
45
45
- php : ' 8.0'
46
46
symfony : ' 4.4.*'
47
+ - php : ' 8.0'
48
+ symfony : ' 6.1.*'
49
+ - php : ' 8.0'
50
+ symfony : ' 6.1.*'
51
+ dependency : ' lowest'
47
52
- php : ' 8.1'
48
53
symfony : ' 4.4.*'
49
54
dependency : ' lowest'
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ parameters:
11
11
path : src/TestKernel.php
12
12
13
13
-
14
- message : " #^Comparison operation \"\\ >\\ =\" between 60001 and 50100 is always true\\ .$#"
14
+ message : " #^Comparison operation \"\\ >\\ =\" between 600.. and 50100 is always true\\ .$#"
15
15
count : 1
16
16
path : src/config/parameters.php
17
17
Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ class TestKernel extends Kernel
51
51
*/
52
52
private $ testRoutingFiles = [];
53
53
54
+ /**
55
+ * Internal config.
56
+ *
57
+ * @var bool
58
+ */
59
+ private $ clearCache = true ;
60
+
54
61
/**
55
62
* {@inheritDoc}
56
63
*/
@@ -185,6 +192,10 @@ public function shutdown(): void
185
192
{
186
193
parent ::shutdown ();
187
194
195
+ if (!$ this ->clearCache ) {
196
+ return ;
197
+ }
198
+
188
199
$ cacheDirectory = $ this ->getCacheDir ();
189
200
$ logDirectory = $ this ->getLogDir ();
190
201
@@ -198,4 +209,9 @@ public function shutdown(): void
198
209
$ filesystem ->remove ($ logDirectory );
199
210
}
200
211
}
212
+
213
+ public function setClearCacheAfterShutdown (bool $ clearCache ): void
214
+ {
215
+ $ this ->clearCache = $ clearCache ;
216
+ }
201
217
}
You can’t perform that action at this time.
0 commit comments