mediawiki-extensions-Echo/scripts/gen-autoload.php
James D. Forrester 429f0e47ae build: Enable phpcs rule 'MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix' and make pass
Change-Id: Iaffa931acfc2f0eb4b4a6cf61d63593bb860d25c
2015-10-29 13:06:44 +01:00

27 lines
556 B
PHP

<?php
require_once __DIR__ . '/../../../includes/utils/AutoloadGenerator.php';
// @codingStandardsIgnoreStart
function main() {
// @codingStandardsIgnoreEnd
$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();