X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMediaWikiServices.php;h=33d0fd4d3d13ae30ea8ed241268f40fdca132302;hb=766b71ef7f65ac1866341782e7235ee5b0c55648;hp=84fc959fa7eb11a20c32fe0cde957b30d8400dfb;hpb=1a81ba9bcb801de0be82fbd44332dada53800879;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MediaWikiServices.php b/includes/MediaWikiServices.php index 84fc959fa7..33d0fd4d3d 100644 --- a/includes/MediaWikiServices.php +++ b/includes/MediaWikiServices.php @@ -10,6 +10,9 @@ use GenderCache; use GlobalVarConfig; use Hooks; use IBufferingStatsdDataFactory; +use MediaWiki\Shell\CommandFactory; +use MediaWiki\Storage\BlobStore; +use MediaWiki\Storage\RevisionStore; use Wikimedia\Rdbms\LBFactory; use LinkCache; use Wikimedia\Rdbms\LoadBalancer; @@ -30,7 +33,7 @@ use SearchEngineConfig; use SearchEngineFactory; use SiteLookup; use SiteStore; -use WatchedItemStore; +use WatchedItemStoreInterface; use WatchedItemQueryService; use SkinFactory; use TitleFormatter; @@ -512,7 +515,7 @@ class MediaWikiServices extends ServiceContainer { /** * @since 1.28 - * @return WatchedItemStore + * @return WatchedItemStoreInterface */ public function getWatchedItemStore() { return $this->getService( 'WatchedItemStore' ); @@ -681,6 +684,38 @@ class MediaWikiServices extends ServiceContainer { return $this->getService( 'ReadOnlyMode' ); } + /** + * @since 1.30 + * @return CommandFactory + */ + public function getShellCommandFactory() { + return $this->getService( 'ShellCommandFactory' ); + } + + /** + * @since 1.31 + * @return \ExternalStoreFactory + */ + public function getExternalStoreFactory() { + return $this->getService( 'ExternalStoreFactory' ); + } + + /** + * @since 1.31 + * @return BlobStore + */ + public function getBlobStore() { + return $this->getService( 'BlobStore' ); + } + + /** + * @since 1.31 + * @return RevisionStore + */ + public function getRevisionStore() { + return $this->getService( 'RevisionStore' ); + } + /////////////////////////////////////////////////////////////////////////// // NOTE: When adding a service getter here, don't forget to add a test // case for it in MediaWikiServicesTest::provideGetters() and in