mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15540] Fix test
PHPBB3-15540
This commit is contained in:
18
phpBB/phpbb/cache/service.php
vendored
18
phpBB/phpbb/cache/service.php
vendored
@@ -13,6 +13,8 @@
|
||||
|
||||
namespace phpbb\cache;
|
||||
|
||||
use phpbb\cache\driver\driver_interface;
|
||||
use phpbb\config\config;
|
||||
use phpbb\json\sanitizer as json_sanitizer;
|
||||
|
||||
/**
|
||||
@@ -23,14 +25,14 @@ class service
|
||||
/**
|
||||
* Cache driver.
|
||||
*
|
||||
* @var \phpbb\cache\driver\driver_interface
|
||||
* @var driver_interface
|
||||
*/
|
||||
protected $driver;
|
||||
|
||||
/**
|
||||
* The config.
|
||||
*
|
||||
* @var \phpbb\config\config
|
||||
* @var config
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
@@ -58,13 +60,13 @@ class service
|
||||
/**
|
||||
* Creates a cache service around a cache driver
|
||||
*
|
||||
* @param \phpbb\cache\driver\driver_interface $driver The cache driver
|
||||
* @param \phpbb\config\config $config The config
|
||||
* @param driver_interface $driver The cache driver
|
||||
* @param config $config The config
|
||||
* @param \phpbb\db\driver\driver_interface $db Database connection
|
||||
* @param string $phpbb_root_path Root path
|
||||
* @param string $php_ext PHP file extension
|
||||
*/
|
||||
public function __construct(\phpbb\cache\driver\driver_interface $driver, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, $phpbb_root_path, $php_ext)
|
||||
public function __construct(driver_interface $driver, config $config, \phpbb\db\driver\driver_interface $db, $phpbb_root_path, $php_ext)
|
||||
{
|
||||
$this->set_driver($driver);
|
||||
$this->config = $config;
|
||||
@@ -76,7 +78,7 @@ class service
|
||||
/**
|
||||
* Returns the cache driver used by this cache service.
|
||||
*
|
||||
* @return \phpbb\cache\driver\driver_interface The cache driver
|
||||
* @return driver_interface The cache driver
|
||||
*/
|
||||
public function get_driver()
|
||||
{
|
||||
@@ -86,9 +88,9 @@ class service
|
||||
/**
|
||||
* Replaces the cache driver used by this cache service.
|
||||
*
|
||||
* @param \phpbb\cache\driver\driver_interface $driver The cache driver
|
||||
* @param driver_interface $driver The cache driver
|
||||
*/
|
||||
public function set_driver(\phpbb\cache\driver\driver_interface $driver)
|
||||
public function set_driver(driver_interface $driver)
|
||||
{
|
||||
$this->driver = $driver;
|
||||
}
|
||||
|
Reference in New Issue
Block a user