8000 bug #18974 Added missing APCU CacheProvider of doctrine/cache 1.6.x (… · symfony/symfony@20417d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 20417d2

Browse files
committed
bug #18974 Added missing APCU CacheProvider of doctrine/cache 1.6.x (Carsten Eilers)
This PR was merged into the 3.1 branch. Discussion ---------- Added missing APCU CacheProvider of doctrine/cache 1.6.x | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | yes | License | MIT | Doc PR | reference to the documentation PR, if any Commits ------- a104c39 Added APCU CacheProvider of doctrine/cache 1.6.x
2 parents 112cb1f + a104c39 commit 20417d2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ protected function loadCacheDriver($cacheName, $objectManagerName, array $cacheD
372372
$cacheDef->addMethodCall('setRedis', array(new Reference($this->getObjectManagerElementName(sprintf('%s_redis_instance', $objectManagerName)))));
373373
break;
374374
case 'apc':
375+
case 'apcu':
375376
case 'array':
376377
case 'xcache':
377378
case 'wincache':

src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ public function providerBasicDrivers()
174174
{
175175
return array(
176176
array('doctrine.orm.cache.apc.class', array('type' => 'apc')),
177+
array('doctrine.orm.cache.apcu.class', array('type' => 'apcu')),
177178
array('doctrine.orm.cache.array.class', array('type' => 'array')),
178179
array('doctrine.orm.cache.xcache.class', array('type' => 'xcache')),
179180
array('doctrine.orm.cache.wincache.class', array('type' => 'wincache')),

0 commit comments

Comments
 (0)
0