Remove global namespace class aliases

Depends-On: I7e8e7f5ec0ac2f995489a559e88fc55ab877e06e
Change-Id: Ie3f5d5880363777eda4608fe8753a69e7ff3c5f9
This commit is contained in:
Reedy 2021-10-01 02:16:45 +01:00
parent cfc2f4f319
commit df89742072
11 changed files with 4 additions and 28 deletions

View file

@ -15,20 +15,6 @@
"requires": {
"MediaWiki": ">= 1.36.0"
},
"AutoloadClasses": {
"MathDataUpdater": "src/MathDataUpdater.php",
"MathHooks": "src/Hooks.php",
"MathLaTeXML": "src/MathLaTeXML.php",
"MathMathML": "src/MathMathML.php",
"MathRenderer": "src/MathRenderer.php",
"MathRestbaseInterface": "src/MathRestbaseInterface.php",
"MediaWiki\\Extension\\Math\\MathDataUpdater": "src/MathDataUpdater.php",
"MediaWiki\\Extension\\Math\\Hooks": "src/Hooks.php",
"MediaWiki\\Extension\\Math\\MathLaTeXML": "src/MathLaTeXML.php",
"MediaWiki\\Extension\\Math\\MathMathML": "src/MathMathML.php",
"MediaWiki\\Extension\\Math\\MathRenderer": "src/MathRenderer.php",
"MediaWiki\\Extension\\Math\\MathRestbaseInterface": "src/MathRestbaseInterface.php"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\Math\\": "src/"
},

View file

@ -90,5 +90,3 @@ class Hooks {
}
}
class_alias( Hooks::class, 'MathHooks' );

View file

@ -58,5 +58,3 @@ class MathDataUpdater implements StatementDataUpdater {
}
}
}
class_alias( MathDataUpdater::class, 'MathDataUpdater' );

View file

@ -223,5 +223,3 @@ class MathLaTeXML extends MathMathML {
return 'mathlatexml';
}
}
class_alias( MathLaTeXML::class, 'MathLaTeXML' );

View file

@ -582,5 +582,3 @@ class MathMathML extends MathRenderer {
return $this->userInputTex === '';
}
}
class_alias( MathMathML::class, 'MathMathML' );

View file

@ -731,5 +731,3 @@ abstract class MathRenderer {
$this->logger->debug( "$msg for \"{tex}\".", [ 'tex' => $this->userInputTex ] );
}
}
class_alias( MathRenderer::class, 'MathRenderer' );

View file

@ -472,5 +472,3 @@ class MathRestbaseInterface {
throw new MWException( "Cannot get $type. $detail" );
}
}
class_alias( MathRestbaseInterface::class, 'MathRestbaseInterface' );

View file

@ -2,10 +2,10 @@
namespace MediaWiki\Extension\Math\Render;
use MathMathML;
use MediaWiki\Config\ServiceOptions;
use MediaWiki\Extension\Math\MathConfig;
use MediaWiki\Extension\Math\MathLaTeXML;
use MediaWiki\Extension\Math\MathMathML;
use MediaWiki\Extension\Math\MathMathMLCli;
use MediaWiki\Extension\Math\MathPng;
use MediaWiki\Extension\Math\MathRenderer;

View file

@ -3,7 +3,7 @@
namespace MediaWiki\Extension\Math\InputCheck;
use HashBagOStuff;
use MathMathML;
use MediaWiki\Extension\Math\MathMathML;
use MediaWiki\Http\HttpRequestFactory;
use MediaWiki\MediaWikiServices;
use MediaWikiTestCase;

View file

@ -1,5 +1,6 @@
<?php
use MediaWiki\Extension\Math\MathDataUpdater;
use Wikibase\DataModel\Entity\NumericPropertyId;
use Wikibase\DataModel\Services\Entity\PropertyDataTypeMatcher;
use Wikibase\DataModel\Snak\PropertyNoValueSnak;

View file

@ -1,6 +1,7 @@
<?php
use MediaWiki\Extension\Math\MathMathML;
use MediaWiki\Extension\Math\MathRestbaseInterface;
use MediaWiki\Extension\Math\Tests\MathMockHttpTrait;
use Wikimedia\TestingAccessWrapper;