Skip to content

Commit 1a8c9ab

Browse files
authored
Fix Cache Pools: SQLite3Cache constructor argument
The first argument for SQLite3Cache should be of type SQLite3 instead of a string
1 parent 0aba73d commit 1a8c9ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/cache/cache_pools.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ application as if they were Symfony Cache adapters::
153153
use Doctrine\Common\Cache\SQLite3Cache;
154154
use Symfony\Component\Cache\Adapter\DoctrineAdapter;
155155

156-
$doctrineCache = new SQLite3Cache(__DIR__.'/cache/data.sqlite');
156+
$sqliteDatabase = new \SQLite3(__DIR__.'/cache/data.sqlite');
157+
$doctrineCache = new SQLite3Cache($sqliteDatabase, 'tableName');
157158
$symfonyCache = new DoctrineAdapter($doctrineCache);
158159

159160
This adapter also defines two optional arguments called ``namespace`` (default:

0 commit comments

Comments
 (0)