From 00549bb7fc39d0ffdb2f5b916e7ee0be0f4505ee Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Wed, 29 Mar 2017 11:23:55 +0200 Subject: [PATCH] Marked classes as internal (#72) * Marked some classes as internal * Added changelog * minor --- Changelog.md | 1 + src/Cache/FixedTaggingCachePool.php | 7 ++++--- src/Cache/Recording/CachePool.php | 2 ++ src/Cache/Recording/Factory.php | 2 ++ src/Cache/Recording/HierarchyAndTaggablePool.php | 2 ++ src/Cache/Recording/HierarchyPool.php | 2 ++ src/Cache/Recording/TaggablePool.php | 2 ++ src/DataCollector/CacheDataCollector.php | 2 ++ 8 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 9721120..76b065b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 diff --git a/src/Cache/FixedTaggingCachePool.php b/src/Cache/FixedTaggingCachePool.php index 8d3287f..423531f 100644 --- a/src/Cache/FixedTaggingCachePool.php +++ b/src/Cache/FixedTaggingCachePool.php @@ -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 + * + * @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); diff --git a/src/Cache/Recording/CachePool.php b/src/Cache/Recording/CachePool.php index 6be2208..9ba58b6 100644 --- a/src/Cache/Recording/CachePool.php +++ b/src/Cache/Recording/CachePool.php @@ -21,6 +21,8 @@ * @author Aaron Scherer * @author Tobias Nyholm * @author Nicolas Grekas + * + * @internal */ class CachePool implements CacheItemPoolInterface { diff --git a/src/Cache/Recording/Factory.php b/src/Cache/Recording/Factory.php index e19ff73..a7a7cb1 100644 --- a/src/Cache/Recording/Factory.php +++ b/src/Cache/Recording/Factory.php @@ -20,6 +20,8 @@ * Create a recording CachePool. * * @author Tobias Nyholm + * + * @internal */ class Factory { diff --git a/src/Cache/Recording/HierarchyAndTaggablePool.php b/src/Cache/Recording/HierarchyAndTaggablePool.php index 3cf65d9..718251c 100644 --- a/src/Cache/Recording/HierarchyAndTaggablePool.php +++ b/src/Cache/Recording/HierarchyAndTaggablePool.php @@ -15,6 +15,8 @@ /** * @author Tobias Nyholm + * + * @internal */ class HierarchyAndTaggablePool extends TaggablePool implements HierarchicalPoolInterface { diff --git a/src/Cache/Recording/HierarchyPool.php b/src/Cache/Recording/HierarchyPool.php index 82ca7b8..a33a17c 100644 --- a/src/Cache/Recording/HierarchyPool.php +++ b/src/Cache/Recording/HierarchyPool.php @@ -15,6 +15,8 @@ /** * @author Tobias Nyholm + * + * @internal */ class HierarchyPool extends CachePool implements HierarchicalPoolInterface { diff --git a/src/Cache/Recording/TaggablePool.php b/src/Cache/Recording/TaggablePool.php index 091e9fe..0057537 100644 --- a/src/Cache/Recording/TaggablePool.php +++ b/src/Cache/Recording/TaggablePool.php @@ -15,6 +15,8 @@ /** * @author Tobias Nyholm + * + * @internal */ class TaggablePool extends CachePool implements TaggableCacheItemPoolInterface { diff --git a/src/DataCollector/CacheDataCollector.php b/src/DataCollector/CacheDataCollector.php index 39f469d..d371383 100644 --- a/src/DataCollector/CacheDataCollector.php +++ b/src/DataCollector/CacheDataCollector.php @@ -20,6 +20,8 @@ /** * @author Aaron Scherer * @author Tobias Nyholm + * + * @internal */ class CacheDataCollector extends DataCollector {