aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/class_loader.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-01-09 21:09:56 +0100
committerIgor Wiedler <igor@wiedler.ch>2011-01-09 23:49:44 +0100
commit1aef7eb20ee195c7f21d6c5b78653b7c43e669ec (patch)
treeac11043ba149791a225d587e7a61e34db75a04f6 /phpBB/includes/class_loader.php
parent9329b16ab13f3a4caf107df358c3c58bda2dcd8a (diff)
downloadforums-1aef7eb20ee195c7f21d6c5b78653b7c43e669ec.tar
forums-1aef7eb20ee195c7f21d6c5b78653b7c43e669ec.tar.gz
forums-1aef7eb20ee195c7f21d6c5b78653b7c43e669ec.tar.bz2
forums-1aef7eb20ee195c7f21d6c5b78653b7c43e669ec.tar.xz
forums-1aef7eb20ee195c7f21d6c5b78653b7c43e669ec.zip
[task/acm-refactor] Cleaning up left over mentions of ACM and fixing tests.
PHPBB3-9983
Diffstat (limited to 'phpBB/includes/class_loader.php')
-rw-r--r--phpBB/includes/class_loader.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/phpBB/includes/class_loader.php b/phpBB/includes/class_loader.php
index fa121341aa..a28d745983 100644
--- a/phpBB/includes/class_loader.php
+++ b/phpBB/includes/class_loader.php
@@ -33,7 +33,7 @@ class phpbb_class_loader
{
private $phpbb_root_path;
private $php_ext;
- private $acm;
+ private $cache;
private $cached_paths = array();
/**
@@ -42,14 +42,14 @@ class phpbb_class_loader
*
* @param string $phpbb_root_path phpBB's root directory containing includes/
* @param string $php_ext The file extension for PHP files
- * @param phpbb_acm_interface $acm An implementation of the phpBB cache interface.
+ * @param phpbb_cache_driver_interface $cache An implementation of the phpBB cache interface.
*/
- public function __construct($phpbb_root_path, $php_ext = '.php', phpbb_cache_driver_interface $acm = null)
+ public function __construct($phpbb_root_path, $php_ext = '.php', phpbb_cache_driver_interface $cache = null)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext;
- $this->set_acm($acm);
+ $this->set_cache($cache);
}
/**
@@ -57,13 +57,13 @@ class phpbb_class_loader
* the class loader will resolve paths by checking for the existance of every
* directory in the class name every time.
*
- * @param phpbb_acm_interface $acm An implementation of the phpBB cache interface.
+ * @param phpbb_cache_driver_interface $cache An implementation of the phpBB cache interface.
*/
- public function set_acm(phpbb_cache_driver_interface $acm = null)
+ public function set_cache(phpbb_cache_driver_interface $cache = null)
{
- if ($acm)
+ if ($cache)
{
- $this->cached_paths = $acm->get('class_loader');
+ $this->cached_paths = $cache->get('class_loader');
if ($this->cached_paths === false)
{
@@ -71,7 +71,7 @@ class phpbb_class_loader
}
}
- $this->acm = $acm;
+ $this->cache = $cache;
}
/**
@@ -134,10 +134,10 @@ class phpbb_class_loader
return false;
}
- if ($this->acm)
+ if ($this->cache)
{
$this->cached_paths[$class] = $relative_path;
- $this->acm->put('class_loader', $this->cached_paths);
+ $this->cache->put('class_loader', $this->cached_paths);
}
return $path_prefix . $relative_path . $this->php_ext;