use Config;
use ConfigFactory;
use CryptHKDF;
-use CryptRand;
+use DateFormatterFactory;
use EventRelayerGroup;
use GenderCache;
use GlobalVarConfig;
use Wikimedia\Services\NoSuchServiceException;
use MediaWiki\Interwiki\InterwikiLookup;
use MagicWordFactory;
+use MediaWiki\Storage\PageEditStash;
/**
* Service locator for MediaWiki core services.
}
/**
- * @since 1.28
- * @deprecated since 1.32, use random_bytes()/random_int()
- * @return CryptRand
+ * @since 1.33
+ * @return DateFormatterFactory
*/
- public function getCryptRand() {
- wfDeprecated( __METHOD__, '1.32' );
- return $this->getService( 'CryptRand' );
+ public function getDateFormatterFactory() {
+ return $this->getService( 'DateFormatterFactory' );
}
/**
}
/**
- * @since 1.33
+ * @since 1.34
* @return NamespaceInfo
*/
public function getNamespaceInfo() : NamespaceInfo {
return $this->getService( 'OldRevisionImporter' );
}
+ /**
+ * @return PageEditStash
+ * @since 1.34
+ */
+ public function getPageEditStash() {
+ return $this->getService( 'PageEditStash' );
+ }
+
/**
* @since 1.29
* @return Parser