Merge "Added release notes for 'ContentHandler::runLegacyHooks' removal"
[mediawiki.git] / maintenance / generateLocalAutoload.php
blob0c278bc18ea89d764efefffd2c3695a97694fce3
1 <?php
3 if ( PHP_SAPI != 'cli' ) {
4 die( "This script can only be run from the command line.\n" );
7 require_once __DIR__ . '/../includes/utils/AutoloadGenerator.php';
9 // Mediawiki installation directory
10 $base = dirname( __DIR__ );
12 $generator = new AutoloadGenerator( $base, 'local' );
13 $generator->initMediaWikiDefault();
15 // Write out the autoload
16 $fileinfo = $generator->getTargetFileinfo();
17 file_put_contents(
18 $fileinfo['filename'],
19 $generator->getAutoload( 'maintenance/generateLocalAutoload.php' )