24use Wikimedia\ObjectFactory\ObjectFactory;
63 self::$spi = $provider;
79 if ( self::$spi ===
null ) {
81 $provider = ObjectFactory::getObjectFromSpec(
105 return self::$context;
114 if ( !defined(
'MW_PHPUNIT_TEST' ) && !defined(
'MW_PARSER_TEST' ) ) {
115 throw new LogicException( __METHOD__ .
' can only be used in PHPUnit tests' );
117 self::$context = $context;
123 private function __construct() {
if(!defined('MW_SETUP_CALLBACK'))
A helper class for adding extra context to all logs, without the logging code having to be aware.
$wgMWLoggerDefaultSpi
Config variable stub for the MWLoggerDefaultSpi setting, for use by phpdoc and IDEs.