mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/14561] Use the user loader where appropriate
PHPBB3-14561
This commit is contained in:
@@ -40,6 +40,7 @@ class phpbb_console_user_activate_test extends phpbb_console_user_base
|
||||
$this->language,
|
||||
$this->log,
|
||||
$this->notifications,
|
||||
$this->user_loader,
|
||||
$this->phpbb_root_path,
|
||||
$this->php_ext
|
||||
));
|
||||
|
@@ -25,6 +25,7 @@ abstract class phpbb_console_user_base extends phpbb_database_test_case
|
||||
protected $passwords_manager;
|
||||
protected $command_name;
|
||||
protected $question;
|
||||
protected $user_loader;
|
||||
protected $phpbb_root_path;
|
||||
protected $php_ext;
|
||||
|
||||
@@ -70,6 +71,8 @@ abstract class phpbb_console_user_base extends phpbb_database_test_case
|
||||
'\phpbb\datetime'
|
||||
));
|
||||
|
||||
$this->user_loader = new \phpbb\user_loader($db, $phpbb_root_path, $phpEx, USERS_TABLE);
|
||||
|
||||
$driver_helper = new \phpbb\passwords\driver\helper($this->config);
|
||||
$passwords_drivers = array(
|
||||
'passwords.driver.bcrypt_2y' => new \phpbb\passwords\driver\bcrypt_2y($this->config, $driver_helper),
|
||||
|
@@ -27,6 +27,7 @@ class phpbb_console_user_delete_test extends phpbb_console_user_base
|
||||
$this->db,
|
||||
$this->language,
|
||||
$this->log,
|
||||
$this->user_loader,
|
||||
$this->phpbb_root_path,
|
||||
$this->php_ext
|
||||
));
|
||||
|
Reference in New Issue
Block a user