Browse Source

Add deprecation warning to cache package.

There was only one in Cache, and none in Log :)
Mark Story 8 years ago
parent
commit
a7678116f5
2 changed files with 3 additions and 0 deletions
  1. 1 0
      src/Cache/Cache.php
  2. 2 0
      tests/TestCase/Cache/CacheTest.php

+ 1 - 0
src/Cache/Cache.php

@@ -143,6 +143,7 @@ class Cache
      */
     public static function registry(ObjectRegistry $registry = null)
     {
+        deprecationWarning('Use Cache::getRegistry() and Cache::setRegistry() instead.');
         if ($registry) {
             static::setRegistry($registry);
         }

+ 2 - 0
tests/TestCase/Cache/CacheTest.php

@@ -813,6 +813,7 @@ class CacheTest extends TestCase
     /**
      * test registry method
      *
+     * @group deprecated
      * @return void
      */
     public function testRegistry()
@@ -823,6 +824,7 @@ class CacheTest extends TestCase
     /**
      * test registry method setting
      *
+     * @group deprecated
      * @return void
      */
     public function testRegistrySet()