Skip to content

Commit

Permalink
Add deprecation warning to cache package.
Browse files Browse the repository at this point in the history
There was only one in Cache, and none in Log :)
  • Loading branch information
markstory committed Sep 27, 2017
1 parent d503d19 commit a767811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Cache/Cache.php
Expand Up @@ -143,6 +143,7 @@ public static function setRegistry(ObjectRegistry $registry)
*/
public static function registry(ObjectRegistry $registry = null)
{
deprecationWarning('Use Cache::getRegistry() and Cache::setRegistry() instead.');
if ($registry) {
static::setRegistry($registry);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Cache/CacheTest.php
Expand Up @@ -813,6 +813,7 @@ public function testAdd()
/**
* test registry method
*
* @group deprecated
* @return void
*/
public function testRegistry()
Expand All @@ -823,6 +824,7 @@ public function testRegistry()
/**
* test registry method setting
*
* @group deprecated
* @return void
*/
public function testRegistrySet()
Expand Down

0 comments on commit a767811

Please sign in to comment.