Manual:ConvertExtensionToRegistration.php/ja

詳細
convertExtensionToRegistration.php is a maintenance script, which helps you migrating extensions and skins from PHP entry points to a JSON metadata file named  or. If your extension supports older versions of MediaWiki, you should keep your PHP entry point  until you drop support for those older versions

例
php maintenance/convertExtensionToRegistration.php extensions/FooBar/FooBar.php This detects many variable declarations in the entry point  and converts them into settings in an   file. Afterwards, you might still want to manually clean up these declarations inside the  file and add a call to   as detailed on Manual:Extension registration.

オプション
使用法: php convertExtensionToRegistration.php [ ]

引数:

Location to the PHP entry point you wish to convert

オプション:

--skin     Whether to write to skin.json; use this option for converting a skin!

関連項目

 * Migration for extension developers