Add PasswordFactory to MediaWikiServices
[lhc/web/wiklou.git] / includes / MediaWikiServices.php
index 9726e6c..472a453 100644 (file)
@@ -38,6 +38,7 @@ use MimeAnalyzer;
 use ObjectCache;
 use Parser;
 use ParserCache;
+use PasswordFactory;
 use ProxyLookup;
 use SearchEngine;
 use SearchEngineConfig;
@@ -881,6 +882,14 @@ class MediaWikiServices extends ServiceContainer {
                return $this->getService( 'ContentLanguage' );
        }
 
+       /**
+        * @since 1.32
+        * @return PasswordFactory
+        */
+       public function getPasswordFactory() {
+               return $this->getService( 'PasswordFactory' );
+       }
+
        ///////////////////////////////////////////////////////////////////////////
        // NOTE: When adding a service getter here, don't forget to add a test
        // case for it in MediaWikiServicesTest::provideGetters() and in