From 1a8c9ab8ece6b43faf1f708105337569b6c12b16 Mon Sep 17 00:00:00 2001 From: wimme002 Date: Fri, 5 Aug 2016 11:51:09 +0200 Subject: [PATCH] Fix Cache Pools: SQLite3Cache constructor argument The first argument for SQLite3Cache should be of type SQLite3 instead of a string --- components/cache/cache_pools.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/cache/cache_pools.rst b/components/cache/cache_pools.rst index c00685368d9..3b064822bcd 100644 --- a/components/cache/cache_pools.rst +++ b/components/cache/cache_pools.rst @@ -153,7 +153,8 @@ application as if they were Symfony Cache adapters:: use Doctrine\Common\Cache\SQLite3Cache; use Symfony\Component\Cache\Adapter\DoctrineAdapter; - $doctrineCache = new SQLite3Cache(__DIR__.'/cache/data.sqlite'); + $sqliteDatabase = new \SQLite3(__DIR__.'/cache/data.sqlite'); + $doctrineCache = new SQLite3Cache($sqliteDatabase, 'tableName'); $symfonyCache = new DoctrineAdapter($doctrineCache); This adapter also defines two optional arguments called ``namespace`` (default: