mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-11 16:59:09 +00:00
Namespace SkinVector* PHP classes
Namespaceless class aliases are left behind for migration purposes. They can be removed at a later date when dependant extensions and skins are fully updated. Bug: T301204 Change-Id: I2b37c1889ff862ec8bb41325fc9f654c673cd115
This commit is contained in:
parent
ec9ecbfb27
commit
1dcfe80ac3
|
@ -22,10 +22,18 @@
|
|||
* @ingroup Skins
|
||||
*/
|
||||
|
||||
namespace Vector;
|
||||
|
||||
use Action;
|
||||
use ExtensionRegistry;
|
||||
use Html;
|
||||
use Linker;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Vector\Constants;
|
||||
use Vector\Hooks;
|
||||
use Vector\VectorServices;
|
||||
use RuntimeException;
|
||||
use SkinMustache;
|
||||
use SkinTemplate;
|
||||
use SpecialPage;
|
||||
use Title;
|
||||
|
||||
/**
|
||||
* Skin subclass for Vector that may be the new or old version of Vector.
|
||||
|
@ -1015,3 +1023,5 @@ class SkinVector extends SkinMustache {
|
|||
];
|
||||
}
|
||||
}
|
||||
|
||||
class_alias( SkinVector::class, 'SkinVector' );
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Vector\Constants;
|
||||
use Vector\VectorServices;
|
||||
namespace Vector;
|
||||
|
||||
/**
|
||||
* @ingroup Skins
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Vector;
|
||||
|
||||
/**
|
||||
* @ingroup Skins
|
||||
* @package Vector
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
},
|
||||
"ValidSkinNames": {
|
||||
"vector-2022": {
|
||||
"class": "SkinVector22",
|
||||
"class": "Vector\\SkinVector22",
|
||||
"args": [
|
||||
{
|
||||
"name": "vector-2022",
|
||||
|
@ -62,7 +62,7 @@
|
|||
]
|
||||
},
|
||||
"vector": {
|
||||
"class": "SkinVector",
|
||||
"class": "Vector\\SkinVector",
|
||||
"@args": "See SkinVector::__construct for more detail.",
|
||||
"args": [
|
||||
{
|
||||
|
@ -109,8 +109,7 @@
|
|||
},
|
||||
"AutoloadClasses": {
|
||||
"SkinVector": "includes/SkinVector.php",
|
||||
"SkinVectorLegacy": "includes/SkinVectorLegacy.php",
|
||||
"SkinVector22": "includes/SkinVector22.php"
|
||||
"Vector\\SkinVector": "includes/SkinVector.php"
|
||||
},
|
||||
"AutoloadNamespaces": {
|
||||
"Vector\\": "includes/"
|
||||
|
|
|
@ -6,8 +6,8 @@ use HashConfig;
|
|||
use MediaWikiIntegrationTestCase;
|
||||
use ReflectionMethod;
|
||||
use RequestContext;
|
||||
use SkinVector;
|
||||
use Title;
|
||||
use Vector\SkinVector;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/**
|
||||
|
@ -16,12 +16,12 @@ use Wikimedia\TestingAccessWrapper;
|
|||
* @group Vector
|
||||
* @group Skins
|
||||
*
|
||||
* @coversDefaultClass \SkinVector
|
||||
* @coversDefaultClass \Vector\SkinVector
|
||||
*/
|
||||
class SkinVectorTest extends MediaWikiIntegrationTestCase {
|
||||
|
||||
/**
|
||||
* @return \SkinVector
|
||||
* @return SkinVector
|
||||
*/
|
||||
private function provideVectorTemplateObject() {
|
||||
$template = new SkinVector( [ 'name' => 'vector' ] );
|
||||
|
|
|
@ -9,6 +9,7 @@ use Vector\Constants;
|
|||
use Vector\FeatureManagement\FeatureManager;
|
||||
use Vector\Hooks;
|
||||
use Vector\HTMLForm\Fields\HTMLLegacySkinVersionField;
|
||||
use Vector\SkinVector;
|
||||
|
||||
/**
|
||||
* Integration tests for Vector Hooks.
|
||||
|
|
Loading…
Reference in a new issue