mediawiki-extensions-Echo/scripts/gen-autoload.php

25 lines
496 B
PHP
Raw Normal View History

<?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();