build: Move PHP files to expected paths

Principal code is in includes/*.php with the file named the same as the class it
contains. The maintenance script is moved to maintenance/ for clarity.

Change-Id: Icb4cdffb1bd4716e14f883d667def96671b42992
This commit is contained in:
James D. Forrester 2018-02-05 10:59:37 -08:00
parent b5c9330730
commit fa9438e5fa
8 changed files with 8 additions and 8 deletions

View file

@ -2208,12 +2208,12 @@
"CollabPad": "SpecialCollabPad"
},
"AutoloadClasses": {
"ApiVisualEditor": "ApiVisualEditor.php",
"ApiVisualEditorEdit": "ApiVisualEditorEdit.php",
"SpecialCollabPad": "SpecialCollabPad.php",
"VisualEditorHooks": "VisualEditor.hooks.php",
"VisualEditorDataModule": "VisualEditorDataModule.php",
"VisualEditorDesktopArticleTargetInitModule": "VisualEditorDesktopArticleTargetInitModule.php"
"ApiVisualEditor": "includes/ApiVisualEditor.php",
"ApiVisualEditorEdit": "includes/ApiVisualEditorEdit.php",
"SpecialCollabPad": "includes/SpecialCollabPad.php",
"VisualEditorHooks": "includes/VisualEditorHooks.php",
"VisualEditorDataModule": "includes/VisualEditorDataModule.php",
"VisualEditorDesktopArticleTargetInitModule": "includes/VisualEditorDesktopArticleTargetInitModule.php"
},
"ConfigRegistry": {
"visualeditor": "GlobalVarConfig::newInstance"

View file

@ -1096,7 +1096,7 @@ class VisualEditorHooks {
'ext.visualEditor.desktopArticleTarget',
'ext.visualEditor.rebase'
],
'localBasePath' => __DIR__,
'localBasePath' => __DIR__ . '/..',
'remoteExtPath' => 'VisualEditor',
];

View file

@ -12,7 +12,7 @@
$maintenancePath = getenv( 'MW_INSTALL_PATH' ) !== false
? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php'
: __DIR__ . '/../../../maintenance/Maintenance.php';
: __DIR__ . '/../../../../maintenance/Maintenance.php';
require_once $maintenancePath;