Skip to content

Commit 00549bb

Browse files
authored
Marked classes as internal (#72)
* Marked some classes as internal * Added changelog * minor
1 parent 3e6c761 commit 00549bb

8 files changed

+17
-3
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
1010

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

1415
## 0.4.4
1516

src/Cache/FixedTaggingCachePool.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
use Cache\TagInterop\TaggableCacheItemInterface;
1515
use Cache\TagInterop\TaggableCacheItemPoolInterface;
1616
use Psr\Cache\CacheItemInterface;
17-
use Psr\Cache\InvalidArgumentException;
1817

1918
/**
2019
* This class is a decorator for a TaggableCacheItemPoolInterface. It tags everything with predefined tags.
2120
*
2221
* @author Tobias Nyholm <[email protected]>
22+
*
23+
* @internal
2324
*/
2425
class FixedTaggingCachePool implements TaggableCacheItemPoolInterface
2526
{
@@ -97,7 +98,7 @@ public function deleteItems(array $keys)
9798
public function save(CacheItemInterface $item)
9899
{
99100
if (!$item instanceof TaggableCacheItemInterface) {
100-
throw new InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.');
101+
throw new \InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.');
101102
}
102103

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

117118
$item->setTags($this->tags);

src/Cache/Recording/CachePool.php

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @author Aaron Scherer <[email protected]>
2222
* @author Tobias Nyholm <[email protected]>
2323
* @author Nicolas Grekas <[email protected]>
24+
*
25+
* @internal
2426
*/
2527
class CachePool implements CacheItemPoolInterface
2628
{

src/Cache/Recording/Factory.php

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* Create a recording CachePool.
2121
*
2222
* @author Tobias Nyholm <[email protected]>
23+
*
24+
* @internal
2325
*/
2426
class Factory
2527
{

src/Cache/Recording/HierarchyAndTaggablePool.php

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* @author Tobias Nyholm <[email protected]>
18+
*
19+
* @internal
1820
*/
1921
class HierarchyAndTaggablePool extends TaggablePool implements HierarchicalPoolInterface
2022
{

src/Cache/Recording/HierarchyPool.php

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* @author Tobias Nyholm <[email protected]>
18+
*
19+
* @internal
1820
*/
1921
class HierarchyPool extends CachePool implements HierarchicalPoolInterface
2022
{

src/Cache/Recording/TaggablePool.php

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* @author Tobias Nyholm <[email protected]>
18+
*
19+
* @internal
1820
*/
1921
class TaggablePool extends CachePool implements TaggableCacheItemPoolInterface
2022
{

src/DataCollector/CacheDataCollector.php

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
/**
2121
* @author Aaron Scherer <[email protected]>
2222
* @author Tobias Nyholm <[email protected]>
23+
*
24+
* @internal
2325
*/
2426
class CacheDataCollector extends DataCollector
2527
{

0 commit comments

Comments
 (0)