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

[ticket/12574] Remove passwords manager & container requirement from oauth

PHPBB3-12574
This commit is contained in:
Marc Alexander
2019-11-16 23:05:36 +01:00
parent 0cbe05faad
commit f460194379
3 changed files with 66 additions and 54 deletions

View File

@@ -60,13 +60,34 @@ class phpbb_functions_user_delete_test extends phpbb_database_test_case
// Set up passwords manager
$passwords_manager = new \phpbb\passwords\manager($config, $passwords_drivers, $passwords_helper, array_keys($passwords_drivers));
$plugins = new \phpbb\di\service_collection($phpbb_container);
$plugins->add('core.captcha.plugins.nogd');
$phpbb_container->set(
'captcha.factory',
new \phpbb\captcha\factory($phpbb_container, $plugins)
);
$phpbb_container->set(
'core.captcha.plugins.nogd',
new \phpbb\captcha\plugins\nogd()
);
// Set up passwords manager
$db_auth_provider = new \phpbb\auth\provider\db(
new \phpbb\captcha\factory($phpbb_container, $plugins),
$config,
$db,
$passwords_manager,
$request,
$user,
$phpbb_root_path,
$phpEx
);
$oauth_provider = new \phpbb\auth\provider\oauth\oauth(
$config,
$phpbb_container,
$db,
$db_auth_provider,
$phpbb_dispatcher,
$lang,
$passwords_manager,
$request,
$oauth_provider_collection,
$user,