8000 bug #6852 Fix Cache Pools: SQLite3Cache constructor argument (wimme002) · symfony/symfony-docs@d7e3c96 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7e3c96

Browse files
committed
bug #6852 Fix Cache Pools: SQLite3Cache constructor argument (wimme002)
This PR was merged into the 3.1 branch. Discussion ---------- Fix Cache Pools: SQLite3Cache constructor argument The first argument for SQLite3Cache should be of type SQLite3 instead of a string https://github.com/doctrine/cache/blob/master/lib/Doctrine/Common/Cache/SQLite3Cache.php#L68 Commits ------ 8000 - 1a8c9ab Fix Cache Pools: SQLite3Cache constructor argument
2 parents 0aba73d + 1a8c9ab commit d7e3c96

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)
0