File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,20 @@ public function loadConfiguration()
2929 {
3030 $ container = $ this ->getContainerBuilder ();
3131
32- $ container ->addDefinition ($ this ->prefix ('journal ' ))
33- ->setClass (Nette \Caching \Storages \IJournal::class)
34- ->setFactory (Nette \Caching \Storages \SQLiteJournal::class, [$ this ->tempDir . '/cache/journal.s3db ' ]);
32+ if (extension_loaded ('pdo_sqlite ' )) {
33+ $ container ->addDefinition ($ this ->prefix ('journal ' ))
34+ ->setClass (Nette \Caching \Storages \IJournal::class)
35+ ->setFactory (Nette \Caching \Storages \SQLiteJournal::class, [$ this ->tempDir . '/cache/journal.s3db ' ]);
36+ }
3537
3638 $ container ->addDefinition ($ this ->prefix ('storage ' ))
3739 ->setClass (Nette \Caching \IStorage::class)
3840 ->setFactory (Nette \Caching \Storages \FileStorage::class, [$ this ->tempDir . '/cache ' ]);
3941
4042 if ($ this ->name === 'cache ' ) {
41- $ container ->addAlias ('nette.cacheJournal ' , $ this ->prefix ('journal ' ));
43+ if (extension_loaded ('pdo_sqlite ' )) {
44+ $ container ->addAlias ('nette.cacheJournal ' , $ this ->prefix ('journal ' ));
45+ }
4246 $ container ->addAlias ('cacheStorage ' , $ this ->prefix ('storage ' ));
4347 }
4448 }
You can’t perform that action at this time.
0 commit comments