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
This commit is contained in:
Fabien Potencier 2016-06-08 12:06:15 +02:00
commit 20417d2658
2 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,7 @@ abstract class AbstractDoctrineExtension extends Extension
$cacheDef->addMethodCall('setRedis', array(new Reference($this->getObjectManagerElementName(sprintf('%s_redis_instance', $objectManagerName)))));
break;
case 'apc':
case 'apcu':
case 'array':
case 'xcache':
case 'wincache':

View File

@ -174,6 +174,7 @@ class DoctrineExtensionTest extends \PHPUnit_Framework_TestCase
{
return array(
array('doctrine.orm.cache.apc.class', array('type' => 'apc')),
array('doctrine.orm.cache.apcu.class', array('type' => 'apcu')),
array('doctrine.orm.cache.array.class', array('type' => 'array')),
array('doctrine.orm.cache.xcache.class', array('type' => 'xcache')),
array('doctrine.orm.cache.wincache.class', array('type' => 'wincache')),