Jump to content

Manual:generateLocalAutoload.php

From mediawiki.org
This page is a translated version of the page Manual:GenerateLocalAutoload.php and the translation is 50% complete.
MediaWiki バージョン:
1.25 – 1.40
Renamed to generateAutoload.php in MW 1.41

詳細

generateLocalAutoload.php was a maintenance script that generates a local autoload file. It was renamed to Manual:generateAutoload.php in MediaWiki 1.41. MediaWiki follows the psr-4 namespace to load the classes. This script generates and dumps the $wgAutoloadLocalClasses (autoload mapping) in autoload.php in the root of the MediaWiki directory.

オプション

このスクリプトにはオプションはありません。

使用法

$ php maintenance/run.php generateLocalAutoload
Terminal
This script does not give any output on stdout. If you don't get an error, it means the script ran successfully.
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。

関連項目