mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 16:04:35 +00:00
9d08c96fad
Mainly because I was annoyed at m<tab>o<tab>d<tab>u<tab> to reach modules/. Change-Id: Ib149cb2e2612ccddd0503f9d0c5d05b554860a00
25 lines
496 B
PHP
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();
|