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

27 lines
556 B
PHP
Raw Normal View History

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