mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-03 20:06:59 +00:00
2f0ff9cbf6
* Deprecated main entry-points * Removed unused configuration * Removed old formatters for Echo events (mention, edit-user-talk, etc) * Removed unused messages Bug: T121612 Change-Id: I639b9d9906d3ff37021cb9b5ed3cb401354b5bd9
28 lines
573 B
PHP
28 lines
573 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 );
|
|
}
|
|
|
|
$generator->generateAutoload( basename( __DIR__ ) . '/' . basename( __FILE__ ) );
|
|
|
|
echo "Done.\n\n";
|
|
}
|
|
|
|
main();
|