Commit 7048b219 authored by Crell's avatar Crell
Browse files

refs #1400748 by Crell: Move Cache subsystem to the Core namespace.

parent 0cb703be
......@@ -18,10 +18,10 @@
* The cache bin for which the cache object should be returned, defaults to
* 'cache'.
*
* @return Drupal\Cache\CacheBackendInterface
* @return Drupal\Core\Cache\CacheBackendInterface
* The cache object associated with the specified bin.
*
* @see Drupal\Cache\CacheBackendInterface
* @see Drupal\Core\Cache\CacheBackendInterface
*/
function cache($bin = 'cache') {
// Temporary backwards compatibiltiy layer, allow old style prefixed cache
......@@ -34,7 +34,7 @@ function cache($bin = 'cache') {
if (!isset($cache_objects[$bin])) {
$class = variable_get('cache_class_' . $bin);
if (!isset($class)) {
$class = variable_get('cache_default_class', 'Drupal\Cache\DatabaseBackend');
$class = variable_get('cache_default_class', 'Drupal\Core\Cache\DatabaseBackend');
}
$cache_objects[$bin] = new $class($bin);
}
......
......@@ -5,7 +5,7 @@
* Definition of CacheBackendInterface.
*/
namespace Drupal\Cache;
namespace Drupal\Core\Cache;
/**
* Defines an interface for cache implementations.
......
......@@ -5,7 +5,7 @@
* Definition of DatabaseBackend.
*/
namespace Drupal\Cache;
namespace Drupal\Core\Cache;
use Exception;
......
......@@ -5,7 +5,7 @@
* Definition of InstallBackend.
*/
namespace Drupal\Cache;
namespace Drupal\Core\Cache;
use Exception;
......
......@@ -5,7 +5,7 @@
* Definition of NullBackend.
*/
namespace Drupal\Cache;
namespace Drupal\Core\Cache;
/**
* Defines a stub cache implementation.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment