1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-23 19:51:26 +02:00
Files
php-phpbb/phpBB/phpbb/passwords/driver/base.php
Marc Alexander 01512104b5 [feature/passwords] Use dependency injection for passwords driver helper
The passwords driver helper is now injected into the driver base instead
of being manually loaded.

PHPBB3-11610
2013-09-22 22:53:10 +02:00

69 lines
1005 B
PHP

<?php
/**
*
* @package phpBB3
* @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package passwords
*/
abstract class phpbb_passwords_driver_base implements phpbb_passwords_driver_interface
{
/** @var phpbb_config */
protected $config;
/** @var phpbb_passwords_driver_helper */
protected $helper;
/** @var driver name */
protected $name;
/**
* Constructor of passwords driver object
*
* @return string Hash prefix
*/
public function __construct(phpbb_config $config, phpbb_passwords_driver_helper $helper)
{
$this->config = $config;
$this->helper = $helper;
}
/**
* @inheritdoc
*/
public function is_supported()
{
return true;
}
/**
* @inheritdoc
*/
public function get_name()
{
return $this->name;
}
/**
* Set driver name
*
* @param string $name Driver name
*/
public function set_name($name)
{
$this->name = $name;
}
}