Manual:generateAutoload.php
Appearance
MediaWiki version: | ≥ 1.41 Gerrit change 898689 |
MediaWiki file: generateAutoload.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | Find code • Find documentation |
Details
[edit]generateAutoload.php is a maintenance script that generates a local autoload file.
It was renamed from Manual:generateLocalAutoload.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.
Options
[edit]This script does not accept any options.
Usage
[edit]$ php maintenance/run.php generateAutoload
Terminal
$ php maintenance/run.php generateAutoload
This script does not give any output on stdout. If you don't get an error, it means the script ran successfully.
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.