1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[feature/dic] Remove cache factory, now handled by DIC

PHPBB3-10739
This commit is contained in:
Igor Wiedler
2012-03-31 20:21:26 +02:00
parent 8e2cbe39cd
commit b12f9a2855
3 changed files with 7 additions and 54 deletions

View File

@@ -1,42 +0,0 @@
<?php
/**
*
* @package acm
* @copyright (c) 2010 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package acm
*/
class phpbb_cache_factory
{
private $acm_type;
public function __construct($acm_type)
{
$this->acm_type = $acm_type;
}
public function get_driver()
{
$class_name = 'phpbb_cache_driver_' . $this->acm_type;
return new $class_name();
}
public function get_service()
{
$driver = $this->get_driver();
$service = new phpbb_cache_service($driver);
return $service;
}
}