mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/12352] Revert to db auth provider if default does not exist
This will make sure that we will not encounter a non-existing auth provider. We will revert to the default db auth provider if the one set in the config does not exist in our auth provider collection. PHPBB3-12352
This commit is contained in:
@@ -96,6 +96,10 @@ class phpbb_session_testable_factory
|
||||
'auth.provider.db',
|
||||
new phpbb_mock_auth_provider()
|
||||
);
|
||||
$phpbb_container->set(
|
||||
'auth.provider_collection',
|
||||
array('auth.provider.db' => $phpbb_container->get('auth.provider.db'))
|
||||
);
|
||||
|
||||
$session = new phpbb_mock_session_testable;
|
||||
return $session;
|
||||
|
Reference in New Issue
Block a user