<?php
-// This file is generated, do not adjust manually
+// This file is generated by maintenance/generateLocalAutoload.php, do not adjust manually
global $wgAutoloadLocalClasses;
/**
* Write out all known classes to autoload.php in
* the provided basedir
+ *
+ * @param string $commandName Value used in file comment to direct
+ * developers towards the appropriate way to update the autoload.
*/
- public function generateAutoload() {
+ public function generateAutoload( $commandName = 'AutoloadGenerator' ) {
$content = array();
// We need to generate a line each rather than exporting the
$this->basepath . '/autoload.php',
<<<EOD
<?php
-// This file is generated, do not adjust manually
+// This file is generated by $commandName, do not adjust manually
global \${$this->variableName};
$generator->forceClassPath( 'MyLocalSettingsGenerator', "$base/mw-config/overrides.php" );
// Write out the autoload
-$generator->generateAutoload();
+$generator->generateAutoload( 'maintenance/generateLocalAutoload.php' );