Skip to content

Commit

Permalink
Marked classes as internal (#72)
Browse files Browse the repository at this point in the history
* Marked some classes as internal

* Added changelog

* minor
  • Loading branch information
Nyholm authored Mar 29, 2017
1 parent 3e6c761 commit 00549bb
Showing 8 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -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

7 changes: 4 additions & 3 deletions src/Cache/FixedTaggingCachePool.php
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
*
* @internal
*/
class FixedTaggingCachePool implements TaggableCacheItemPoolInterface
{
@@ -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);
@@ -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);
2 changes: 2 additions & 0 deletions src/Cache/Recording/CachePool.php
Original file line number Diff line number Diff line change
@@ -21,6 +21,8 @@
* @author Aaron Scherer <[email protected]>
* @author Tobias Nyholm <[email protected]>
* @author Nicolas Grekas <[email protected]>
*
* @internal
*/
class CachePool implements CacheItemPoolInterface
{
2 changes: 2 additions & 0 deletions src/Cache/Recording/Factory.php
Original file line number Diff line number Diff line change
@@ -20,6 +20,8 @@
* Create a recording CachePool.
*
* @author Tobias Nyholm <[email protected]>
*
* @internal
*/
class Factory
{
2 changes: 2 additions & 0 deletions src/Cache/Recording/HierarchyAndTaggablePool.php
Original file line number Diff line number Diff line change
@@ -15,6 +15,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @internal
*/
class HierarchyAndTaggablePool extends TaggablePool implements HierarchicalPoolInterface
{
2 changes: 2 additions & 0 deletions src/Cache/Recording/HierarchyPool.php
Original file line number Diff line number Diff line change
@@ -15,6 +15,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @internal
*/
class HierarchyPool extends CachePool implements HierarchicalPoolInterface
{
2 changes: 2 additions & 0 deletions src/Cache/Recording/TaggablePool.php
Original file line number Diff line number Diff line change
@@ -15,6 +15,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @internal
*/
class TaggablePool extends CachePool implements TaggableCacheItemPoolInterface
{
2 changes: 2 additions & 0 deletions src/DataCollector/CacheDataCollector.php
Original file line number Diff line number Diff line change
@@ -20,6 +20,8 @@
/**
* @author Aaron Scherer <[email protected]>
* @author Tobias Nyholm <[email protected]>
*
* @internal
*/
class CacheDataCollector extends DataCollector
{

0 comments on commit 00549bb

Please sign in to comment.