},
'PasswordReset' => function ( MediaWikiServices $services ) : PasswordReset {
- $options = new ServiceOptions( PasswordReset::$constructorOptions, $services->getMainConfig() );
+ $options = new ServiceOptions( PasswordReset::CONSTRUCTOR_OPTIONS, $services->getMainConfig() );
return new PasswordReset(
$options,
AuthManager::singleton(),
*/
private $permissionCache;
- public static $constructorOptions = [
+ public const CONSTRUCTOR_OPTIONS = [
'AllowRequiringEmailForResets',
'EnableEmail',
'PasswordResetRoutes',
'PasswordResetRoutes' => $passwordResetRoutes,
];
- return new ServiceOptions( PasswordReset::$constructorOptions, $hash );
+ return new ServiceOptions( PasswordReset::CONSTRUCTOR_OPTIONS, $hash );
}
/**