mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 16:04:35 +00:00
429f0e47ae
Change-Id: Iaffa931acfc2f0eb4b4a6cf61d63593bb860d25c
27 lines
556 B
PHP
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();
|