File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 5
5
use Codeception \Module ;
6
6
use Codeception \TestInterface ;
7
7
use Nette \Bootstrap \Configurator ;
8
+ use Nette \Caching \Cache ;
8
9
use Nette \Caching \Storages \Journal ;
9
- use Nette \Caching \Storages \SQLiteJournal ;
10
10
use Nette \DI \Container ;
11
11
use Nette \DI \Extensions \ExtensionsExtension ;
12
12
use Nette \DI \MissingServiceException ;
13
13
use Nette \Http \Session ;
14
14
use Nette \Utils \FileSystem ;
15
- use ReflectionProperty ;
16
15
17
16
class NetteDIModule extends Module
18
17
{
@@ -204,11 +203,7 @@ private function stopContainer(): void
204
203
205
204
try {
206
205
$ journal = $ this ->container ->getByType (Journal::class);
207
- if ($ journal instanceof SQLiteJournal) {
208
- $ property = new ReflectionProperty (SQLiteJournal::class, 'pdo ' );
209
- $ property ->setAccessible (true );
210
- $ property ->setValue ($ journal , null );
211
- }
206
+ $ journal ->clean ([Cache::All => true ]);
212
207
} catch (MissingServiceException $ e ) {
213
208
// IJournal is optional
214
209
}
You can’t perform that action at this time.
0 commit comments