mediawiki-extensions-Echo/scripts/gen-autoload.php
Kunal Mehta 9d08c96fad Move all PHP code into includes/
Mainly because I was annoyed at m<tab>o<tab>d<tab>u<tab> to reach
modules/.

Change-Id: Ib149cb2e2612ccddd0503f9d0c5d05b554860a00
2015-06-07 18:54:14 -07:00

25 lines
496 B
PHP

<?php
require_once __DIR__ . '/../../../includes/utils/AutoloadGenerator.php';
function main() {
$base = dirname( __DIR__ );
$generator = new AutoloadGenerator( $base );
$dirs = array(
'includes',
'tests',
);
foreach ( $dirs as $dir ) {
$generator->readDir( $base . '/' . $dir );
}
foreach ( glob( $base . '/*.php' ) as $file ) {
$generator->readFile( $file );
}
$generator->generateAutoload( basename( __DIR__ ) . '/' . basename( __FILE__ ) );
echo "Done.\n\n";
}
main();