Skip to content

Commit df09d2f

Browse files
committed
Merge pull request #13 from Nyholm/patch-3
Make sure we can use the updated adapter
2 parents 40a1de4 + 1e35d19 commit df09d2f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

composer.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,12 @@
2020
"require": {
2121
"php": "^5.5|^7",
2222
"symfony/framework-bundle": "^2.6|^3.0",
23-
"cache/doctrine-adapter": "^0.2"
23+
"cache/doctrine-adapter": "^0.3"
2424
},
2525
"require-dev": {
2626
"phpunit/phpunit": "5.0.*|^4.0",
2727
"matthiasnoback/symfony-dependency-injection-test": "0.7.*"
2828
},
29-
"suggest": {
30-
"ext-memcached": "Allows for caching with Memcached",
31-
"ext-redis": "Allows for caching with Redis"
32-
},
3329
"autoload": {
3430
"psr-4": {
3531
"Cache\\Adapter\\DoctrineAdapterBundle\\": "src/"

src/DependencyInjection/DoctrineAdapterExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Cache\Adapter\DoctrineAdapterBundle\DependencyInjection;
1313

14-
use Cache\Doctrine\CachePool;
14+
use Cache\Adapter\Doctrine\DoctrineCachePool;
1515
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
1616
use Symfony\Component\Config\FileLocator;
1717
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -179,7 +179,7 @@ protected function createPsr7CompliantService(ContainerBuilder $container, $doct
179179
$serviceId = 'cache.doctrine_adapter.provider.'.$name;
180180

181181
// Register the CacheItemPoolInterface definition
182-
$def = new Definition(CachePool::class);
182+
$def = new Definition(DoctrineCachePool::class);
183183
$def->addArgument(new Reference($doctrineServiceId));
184184
$def->setTags(['cache.provider' => []]);
185185

0 commit comments

Comments
 (0)