Skip to content

Commit 36581db

Browse files
committed
Rename to CacheAdapterBundle
1 parent df09d2f commit 36581db

File tree

7 files changed

+18
-34
lines changed

7 files changed

+18
-34
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# Doctrine Adapter Bundle
2-
[![Build Status](https://travis-ci.org/php-cache/doctrine-adapter-bundle.png?branch=master)](https://travis-ci.org/php-cache/doctrine-adapter-bundle) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/5b4a0e25-8b81-44b1-8c99-2d2d387939e1/mini.png)](https://insight.sensiolabs.com/projects/5b4a0e25-8b81-44b1-8c99-2d2d387939e1)
1+
# Adapter Bundle
2+
[![Build Status](https://travis-ci.org/php-cache/adapter-bundle.png?branch=master)](https://travis-ci.org/php-cache/adapter-bundle)
33

44
This bundle helps you configurate and register PSR-6 cache services. The bundle uses Doctrine as cache implementation
5-
with help from [DoctrineAdapter] to make it PSR-6 complient.
5+
with help from [DoctrineAdapter] to make it PSR-6 compliant.
66

77
### To Install
88

99
Run the following in your project root, assuming you have composer set up for your project
1010
```sh
11-
composer require cache/doctrine-adapter-bundle
11+
composer require cache/adapter-bundle
1212
```
1313

1414
Add the bundle to app/AppKernel.php
1515

1616
```php
1717
$bundles(
1818
// ...
19-
new Cache\Adapter\DoctrineAdapterBundle\DoctrineAdapterBundle(),
19+
new Cache\AdapterBundle\CacheAdapterBundle(),
2020
// ...
2121
);
2222
```

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "cache/doctrine-adapter-bundle",
2+
"name": "cache/adapter-bundle",
33
"type": "library",
4-
"description": "A bundle that registers Doctrine cache implementations as Symfony services supporting PSR-6 and tagging",
4+
"description": "A bundle that registers cache implementations as Symfony services supporting PSR-6 and tagging",
55
"keywords": [],
6-
"homepage": "https://github.com/php-cache/doctrine-cache-bundle",
6+
"homepage": "https://github.com/php-cache/adapter-bundle",
77
"license": "MIT",
88
"authors": [
99
{
@@ -28,12 +28,12 @@
2828
},
2929
"autoload": {
3030
"psr-4": {
31-
"Cache\\Adapter\\DoctrineAdapterBundle\\": "src/"
31+
"Cache\\AdapterBundle\\": "src/"
3232
}
3333
},
3434
"autoload-dev": {
3535
"psr-4": {
36-
"Cache\\Adapter\\DoctrineAdapterBundle\\Tests\\": "tests/"
36+
"Cache\\AdapterBundle\\Tests\\": "tests/"
3737
}
3838
}
3939
}
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,13 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
namespace Cache\Adapter\DoctrineAdapterBundle;
12+
namespace Cache\AdapterBundle;
1313

14-
use Cache\Adapter\DoctrineAdapterBundle\DependencyInjection\DoctrineAdapterExtension;
1514
use Symfony\Component\HttpKernel\Bundle\Bundle;
1615

1716
/**
1817
* @author Tobias Nyholm <[email protected]>
1918
*/
20-
class DoctrineAdapterBundle extends Bundle
19+
class CacheAdapterBundle extends Bundle
2120
{
22-
/**
23-
* {@inheritdoc}
24-
*/
25-
public function getContainerExtension()
26-
{
27-
return new DoctrineAdapterExtension();
28-
}
2921
}

src/DependencyInjection/DoctrineAdapterExtension.php renamed to src/DependencyInjection/CacheAdapterExtension.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
namespace Cache\Adapter\DoctrineAdapterBundle\DependencyInjection;
12+
namespace Cache\AdapterBundle\DependencyInjection;
1313

1414
use Cache\Adapter\Doctrine\DoctrineCachePool;
1515
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
@@ -24,7 +24,7 @@
2424
* @author Aaron Scherer <[email protected]>
2525
* @author Tobias Nyholm <[email protected]>
2626
*/
27-
class DoctrineAdapterExtension extends Extension
27+
class CacheAdapterExtension extends Extension
2828
{
2929
/**
3030
* Array of types, and their options.
@@ -248,14 +248,6 @@ private function createProviderHelperDefinition($type, array $provider)
248248
return $helperDefinition;
249249
}
250250

251-
/**
252-
* {@inheritdoc}
253-
*/
254-
public function getAlias()
255-
{
256-
return 'cache_adapter_doctrine';
257-
}
258-
259251
/**
260252
* @param array $provider
261253
* @param $helperDefinition

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
namespace Cache\Adapter\DoctrineAdapterBundle\DependencyInjection;
12+
namespace Cache\AdapterBundle\DependencyInjection;
1313

1414
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
1515
use Symfony\Component\Config\Definition\Builder\TreeBuilder;

src/ProviderHelper/Memcached.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
namespace Cache\Adapter\DoctrineAdapterBundle\ProviderHelper;
12+
namespace Cache\AdapterBundle\ProviderHelper;
1313

1414
/**
1515
* Class Memcached.

tests/DependencyInjection/DoctrineCacheExtensionTest.php

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

1212
namespace Cache\Adapter\DoctrineAdapterBundle\Tests\DependencyInjection;
1313

14-
use Cache\Adapter\DoctrineAdapterBundle\DependencyInjection\DoctrineAdapterExtension;
14+
use Cache\Adapter\DoctrineAdapterBundle\DependencyInjection\CacheAdapterExtension;
1515
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
1616

1717
class DoctrineCacheExtensionTest extends AbstractExtensionTestCase
1818
{
1919
protected function getContainerExtensions()
2020
{
2121
return [
22-
new DoctrineAdapterExtension(),
22+
new CacheAdapterExtension(),
2323
];
2424
}
2525

0 commit comments

Comments
 (0)