mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-15 03:35:01 +00:00
090169fec3
That changes the signature. Change-Id: I1dc9f0240ae4b27e51e170f31911fea4f5225625
33 lines
660 B
PHP
33 lines
660 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',
|
|
'maintenance',
|
|
);
|
|
foreach ( $dirs as $dir ) {
|
|
$generator->readDir( $base . '/' . $dir );
|
|
}
|
|
foreach ( glob( $base . '/*.php' ) as $file ) {
|
|
$generator->readFile( $file );
|
|
}
|
|
|
|
$target = $generator->getTargetFileInfo();
|
|
|
|
file_put_contents(
|
|
$target['filename'],
|
|
$generator->getAutoload( basename( __DIR__ ) . '/' . basename( __FILE__ ) )
|
|
);
|
|
|
|
echo "Done.\n\n";
|
|
}
|
|
|
|
main();
|