File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 55use Codeception \Module ;
66use Codeception \TestInterface ;
77use Nette \Bootstrap \Configurator ;
8+ use Nette \Caching \Cache ;
89use Nette \Caching \Storages \Journal ;
9- use Nette \Caching \Storages \SQLiteJournal ;
1010use Nette \DI \Container ;
1111use Nette \DI \Extensions \ExtensionsExtension ;
1212use Nette \DI \MissingServiceException ;
1313use Nette \Http \Session ;
1414use Nette \Utils \FileSystem ;
15- use ReflectionProperty ;
1615
1716class NetteDIModule extends Module
1817{
@@ -204,11 +203,7 @@ private function stopContainer(): void
204203
205204 try {
206205 $ 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 ]);
212207 } catch (MissingServiceException $ e ) {
213208 // IJournal is optional
214209 }
You can’t perform that action at this time.
0 commit comments