Manual:generateLocalAutoload.php
MediaWiki versions: | 1.25 – 1.40 |
Renamed to generateAutoload.php in MW 1.41 |
MediaWiki file: generateLocalAutoload.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.1 • 1.41.2 • 1.39.8 |
Classes: | Find code • Find documentation |
Details
editgenerateLocalAutoload.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.
Options
editThis script does not accept any options.
Usage
edit$ php maintenance/generateLocalAutoload.php
Terminal
$ php maintenance/generateLocalAutoload.php
This script does not give any output on stdout. If you don't get an error, it means the script ran successfully.