Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee

- Using cache/session-handler: ^0.2. **This will break all cached sessions**
- Using cache/taggable-cache: ^0.5 to support the latest versions of the adapters.
- New Collector and WebProfiler page

## 0.4.4

Expand Down
7 changes: 4 additions & 3 deletions src/Cache/FixedTaggingCachePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
use Cache\TagInterop\TaggableCacheItemInterface;
use Cache\TagInterop\TaggableCacheItemPoolInterface;
use Psr\Cache\CacheItemInterface;
use Psr\Cache\InvalidArgumentException;

/**
* This class is a decorator for a TaggableCacheItemPoolInterface. It tags everything with predefined tags.
*
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*
* @internal
*/
class FixedTaggingCachePool implements TaggableCacheItemPoolInterface
{
Expand Down Expand Up @@ -97,7 +98,7 @@ public function deleteItems(array $keys)
public function save(CacheItemInterface $item)
{
if (!$item instanceof TaggableCacheItemInterface) {
throw new InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.');
throw new \InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.');
}

$item->setTags($this->tags);
Expand All @@ -111,7 +112,7 @@ public function save(CacheItemInterface $item)
public function saveDeferred(CacheItemInterface $item)
{
if (!$item instanceof TaggableCacheItemInterface) {
throw new InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.');
throw new \InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.');
}

$item->setTags($this->tags);
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Recording/CachePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* @author Aaron Scherer <aequasi@gmail.com>
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
* @author Nicolas Grekas <p@tchwork.com>
*
* @internal
*/
class CachePool implements CacheItemPoolInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Recording/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* Create a recording CachePool.
*
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*
* @internal
*/
class Factory
{
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Recording/HierarchyAndTaggablePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

/**
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*
* @internal
*/
class HierarchyAndTaggablePool extends TaggablePool implements HierarchicalPoolInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Recording/HierarchyPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

/**
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*
* @internal
*/
class HierarchyPool extends CachePool implements HierarchicalPoolInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Recording/TaggablePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

/**
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*
* @internal
*/
class TaggablePool extends CachePool implements TaggableCacheItemPoolInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/DataCollector/CacheDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
/**
* @author Aaron Scherer <aequasi@gmail.com>
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*
* @internal
*/
class CacheDataCollector extends DataCollector
{
Expand Down