aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache
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/cache
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/cache')
-rw-r--r--phpBB/includes/cache/factory.php21
1 files changed, 6 insertions, 15 deletions
diff --git a/phpBB/includes/cache/factory.php b/phpBB/includes/cache/factory.php
index cc88780bf2..f38e19cbe6 100644
--- a/phpBB/includes/cache/factory.php
+++ b/phpBB/includes/cache/factory.php
@@ -22,31 +22,22 @@ if (!defined('IN_PHPBB'))
class phpbb_cache_factory
{
private $acm_type;
-
+
public function __construct($acm_type)
{
$this->acm_type = $acm_type;
}
-
- public function get_acm()
+
+ public function get_driver()
{
$class_name = 'phpbb_cache_driver_' . $this->acm_type;
return new $class_name();
}
-
+
public function get_service()
{
- $acm = $this->get_acm();
- $service = new phpbb_cache_service($acm);
+ $driver = $this->get_driver();
+ $service = new phpbb_cache_service($driver);
return $service;
}
-
- /**
- * for convenience to allow:
- * $cache = phpbb_cache_factory::create('file')->get_service();
- */
- public static function create($acm_type)
- {
- return new self($acm_type);
- }
}