Change-Id: I567e1a822bd77d9d4348a0ff94184bb6153b4a2a
/**
* Returns the global default instance of the top level service locator.
*
/**
* Returns the global default instance of the top level service locator.
*
* The default instance is initialized using the service instantiator functions
* defined in ServiceWiring.php.
*
* The default instance is initialized using the service instantiator functions
* defined in ServiceWiring.php.
*
/**
* Replaces the global MediaWikiServices instance.
*
/**
* Replaces the global MediaWikiServices instance.
*
* @note This is for use in PHPUnit tests only!
*
* @throws MWException if called outside of PHPUnit tests.
* @note This is for use in PHPUnit tests only!
*
* @throws MWException if called outside of PHPUnit tests.
* instance. getInstance() will return a different MediaWikiServices object
* after every call to resetGlobalServiceLocator().
*
* instance. getInstance() will return a different MediaWikiServices object
* after every call to resetGlobalServiceLocator().
*
* @warning This should not be used during normal operation. It is intended for use
* when the configuration has changed significantly since bootstrap time, e.g.
* during the installation process or during testing.
* @warning This should not be used during normal operation. It is intended for use
* when the configuration has changed significantly since bootstrap time, e.g.
* during the installation process or during testing.
* storage layer will result in an error. Use resetGlobalInstance() to restore normal
* operation.
*
* storage layer will result in an error. Use resetGlobalInstance() to restore normal
* operation.
*
* @warning This is intended for extreme situations only and should never be used
* while serving normal web requests. Legitimate use cases for this method include
* the installation process. Test fixtures may also use this, if the fixture relies
* @warning This is intended for extreme situations only and should never be used
* while serving normal web requests. Legitimate use cases for this method include
* the installation process. Test fixtures may also use this, if the fixture relies
* returns from after pcntl_fork(). It's also safe, but generally unnecessary,
* to call this method from the parent process.
*
* returns from after pcntl_fork(). It's also safe, but generally unnecessary,
* to call this method from the parent process.
*
* @note This is intended for use in the context of process forking only!
*
* @see resetGlobalInstance()
* @note This is intended for use in the context of process forking only!
*
* @see resetGlobalInstance()
/**
* Resets the given service for testing purposes.
*
/**
* Resets the given service for testing purposes.
*
* @warning This is generally unsafe! Other services may still retain references
* to the stale service instance, leading to failures and inconsistencies. Subclasses
* may use this method to reset specific services under specific instances, but
* @warning This is generally unsafe! Other services may still retain references
* to the stale service instance, leading to failures and inconsistencies. Subclasses
* may use this method to reset specific services under specific instances, but
* resetting of global services is allowed. In general, services should not be reset
* individually, since that may introduce inconsistencies.
*
* resetting of global services is allowed. In general, services should not be reset
* individually, since that may introduce inconsistencies.
*
* This method will throw an exception if:
*
* - self::$resetInProgress is false (to allow all services to be reset together
* This method will throw an exception if:
*
* - self::$resetInProgress is false (to allow all services to be reset together
* when creating the MainConfig service. Application logic should
* use getMainConfig() to get a Config instances.
*
* when creating the MainConfig service. Application logic should
* use getMainConfig() to get a Config instances.
*
* @return Config
*/
public function getBootstrapConfig() {
* @return Config
*/
public function getBootstrapConfig() {
* @return ConfigFactory
*/
public function getConfigFactory() {
* @return ConfigFactory
*/
public function getConfigFactory() {
* Returns the Config object that provides configuration for MediaWiki core.
* This may or may not be the same object that is returned by getBootstrapConfig().
*
* Returns the Config object that provides configuration for MediaWiki core.
* This may or may not be the same object that is returned by getBootstrapConfig().
*
* @return Config
*/
public function getMainConfig() {
* @return Config
*/
public function getMainConfig() {
* @return SiteLookup
*/
public function getSiteLookup() {
* @return SiteLookup
*/
public function getSiteLookup() {
* @return SiteStore
*/
public function getSiteStore() {
* @return SiteStore
*/
public function getSiteStore() {
* @return StatsdDataFactory
*/
public function getStatsdDataFactory() {
* @return StatsdDataFactory
*/
public function getStatsdDataFactory() {
* @return EventRelayerGroup
*/
public function getEventRelayerGroup() {
* @return EventRelayerGroup
*/
public function getEventRelayerGroup() {
* @return SearchEngine
*/
public function newSearchEngine() {
* @return SearchEngine
*/
public function newSearchEngine() {
* @return SearchEngineFactory
*/
public function getSearchEngineFactory() {
* @return SearchEngineFactory
*/
public function getSearchEngineFactory() {
* @return SearchEngineConfig
*/
public function getSearchEngineConfig() {
* @return SearchEngineConfig
*/
public function getSearchEngineConfig() {
* @return SkinFactory
*/
public function getSkinFactory() {
* @return SkinFactory
*/
public function getSkinFactory() {
* @return LBFactory
*/
public function getDBLoadBalancerFactory() {
* @return LBFactory
*/
public function getDBLoadBalancerFactory() {
* @return LoadBalancer The main DB load balancer for the local wiki.
*/
public function getDBLoadBalancer() {
* @return LoadBalancer The main DB load balancer for the local wiki.
*/
public function getDBLoadBalancer() {
* @return WatchedItemStore
*/
public function getWatchedItemStore() {
* @return WatchedItemStore
*/
public function getWatchedItemStore() {