Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e1041f

Browse files
[Cache] leverage Contracts\Cache
1 parent5e26074 commit3e1041f

File tree

13 files changed

+27
-86
lines changed

13 files changed

+27
-86
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Resources/config/cache.xml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
<serviceid="Psr\Cache\CacheItemPoolInterface"alias="cache.app" />
150150
<serviceid="Psr\SimpleCache\CacheInterface"alias="cache.app.simple" />
151151
<serviceid="Symfony\Component\Cache\Adapter\AdapterInterface"alias="cache.app" />
152-
<serviceid="Symfony\Component\Cache\CacheInterface"alias="cache.app.taggable" />
152+
<serviceid="Symfony\Contracts\Cache\CacheInterface"alias="cache.app" />
153+
<serviceid="Symfony\Contracts\Cache\TagAwareCacheInterface"alias="cache.app.taggable" />
153154
</services>
154155
</container>

‎src/Symfony/Component/Cache/Adapter/AbstractAdapter.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
usePsr\Log\LoggerAwareInterface;
1616
usePsr\Log\LoggerInterface;
1717
usePsr\Log\NullLogger;
18-
useSymfony\Component\Cache\CacheInterface;
1918
useSymfony\Component\Cache\CacheItem;
2019
useSymfony\Component\Cache\Exception\InvalidArgumentException;
2120
useSymfony\Component\Cache\ResettableInterface;
2221
useSymfony\Component\Cache\Traits\AbstractTrait;
2322
useSymfony\Component\Cache\Traits\GetTrait;
23+
useSymfony\Contracts\Cache\CacheInterface;
2424

2525
/**
2626
* @author Nicolas Grekas <p@tchwork.com>

‎src/Symfony/Component/Cache/Adapter/ArrayAdapter.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
usePsr\Cache\CacheItemInterface;
1515
usePsr\Log\LoggerAwareInterface;
16-
useSymfony\Component\Cache\CacheInterface;
1716
useSymfony\Component\Cache\CacheItem;
1817
useSymfony\Component\Cache\ResettableInterface;
1918
useSymfony\Component\Cache\Traits\ArrayTrait;
19+
useSymfony\Contracts\Cache\CacheInterface;
2020

2121
/**
2222
* @author Nicolas Grekas <p@tchwork.com>

‎src/Symfony/Component/Cache/Adapter/ChainAdapter.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
usePsr\Cache\CacheItemInterface;
1515
usePsr\Cache\CacheItemPoolInterface;
16-
useSymfony\Component\Cache\CacheInterface;
1716
useSymfony\Component\Cache\CacheItem;
1817
useSymfony\Component\Cache\Exception\InvalidArgumentException;
1918
useSymfony\Component\Cache\PruneableInterface;
2019
useSymfony\Component\Cache\ResettableInterface;
2120
useSymfony\Component\Cache\Traits\GetTrait;
21+
useSymfony\Contracts\Cache\CacheInterface;
2222
useSymfony\Contracts\Service\ResetInterface;
2323

2424
/**

‎src/Symfony/Component/Cache/Adapter/NullAdapter.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespaceSymfony\Component\Cache\Adapter;
1313

1414
usePsr\Cache\CacheItemInterface;
15-
useSymfony\Component\Cache\CacheInterface;
1615
useSymfony\Component\Cache\CacheItem;
16+
useSymfony\Contracts\Cache\CacheInterface;
1717

1818
/**
1919
* @author Titouan Galopin <galopintitouan@gmail.com>

‎src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
usePsr\Cache\CacheItemInterface;
1515
usePsr\Cache\CacheItemPoolInterface;
16-
useSymfony\Component\Cache\CacheInterface;
1716
useSymfony\Component\Cache\CacheItem;
1817
useSymfony\Component\Cache\Exception\InvalidArgumentException;
1918
useSymfony\Component\Cache\Marshaller\DefaultMarshaller;
2019
useSymfony\Component\Cache\PruneableInterface;
2120
useSymfony\Component\Cache\ResettableInterface;
2221
useSymfony\Component\Cache\Traits\GetTrait;
2322
useSymfony\Component\Cache\Traits\PhpArrayTrait;
23+
useSymfony\Contracts\Cache\CacheInterface;
2424

2525
/**
2626
* Caches items at warm up time using a PHP array that is stored in shared memory by OPCache since PHP 7.0.

‎src/Symfony/Component/Cache/Adapter/ProxyAdapter.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
usePsr\Cache\CacheItemInterface;
1515
usePsr\Cache\CacheItemPoolInterface;
16-
useSymfony\Component\Cache\CacheInterface;
1716
useSymfony\Component\Cache\CacheItem;
1817
useSymfony\Component\Cache\PruneableInterface;
1918
useSymfony\Component\Cache\ResettableInterface;
2019
useSymfony\Component\Cache\Traits\GetTrait;
2120
useSymfony\Component\Cache\Traits\ProxyTrait;
21+
useSymfony\Contracts\Cache\CacheInterface;
2222

2323
/**
2424
* @author Nicolas Grekas <p@tchwork.com>

‎src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313

1414
usePsr\Cache\CacheItemInterface;
1515
usePsr\Cache\InvalidArgumentException;
16-
useSymfony\Component\Cache\CacheInterface;
1716
useSymfony\Component\Cache\CacheItem;
1817
useSymfony\Component\Cache\PruneableInterface;
1918
useSymfony\Component\Cache\ResettableInterface;
2019
useSymfony\Component\Cache\Traits\GetTrait;
2120
useSymfony\Component\Cache\Traits\ProxyTrait;
21+
useSymfony\Contracts\Cache\TagAwareCacheInterface;
2222

2323
/**
2424
* @author Nicolas Grekas <p@tchwork.com>
2525
*/
26-
class TagAwareAdapterimplementsCacheInterface, TagAwareAdapterInterface, PruneableInterface, ResettableInterface
26+
class TagAwareAdapterimplementsTagAwareAdapterInterface, TagAwareCacheInterface, PruneableInterface, ResettableInterface
2727
{
2828
constTAGS_PREFIX ="\0tags\0";
2929

‎src/Symfony/Component/Cache/Adapter/TraceableAdapter.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
namespaceSymfony\Component\Cache\Adapter;
1313

1414
usePsr\Cache\CacheItemInterface;
15-
useSymfony\Component\Cache\CacheInterface;
1615
useSymfony\Component\Cache\CacheItem;
1716
useSymfony\Component\Cache\PruneableInterface;
1817
useSymfony\Component\Cache\ResettableInterface;
18+
useSymfony\Contracts\Cache\CacheInterface;
1919
useSymfony\Contracts\Service\ResetInterface;
2020

2121
/**

‎src/Symfony/Component/Cache/Adapter/TraceableTagAwareAdapter.php‎

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

1212
namespaceSymfony\Component\Cache\Adapter;
1313

14-
useSymfony\Component\Cache\CacheInterface;
14+
useSymfony\Contracts\Cache\TagAwareCacheInterface;
1515

1616
/**
1717
* @author Robin Chalas <robin.chalas@gmail.com>
1818
*/
19-
class TraceableTagAwareAdapterextends TraceableAdapterimplementsCacheInterface, TagAwareAdapterInterface
19+
class TraceableTagAwareAdapterextends TraceableAdapterimplementsTagAwareAdapterInterface, TagAwareCacheInterface
2020
{
2121
publicfunction__construct(TagAwareAdapterInterface$pool)
2222
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp