Bug: Detect classes within the special directory

Change-Id: I317b58bfae1c8a79a933949293e7bec29b613460
This commit is contained in:
Erik Bernhardson 2014-10-24 16:10:47 -07:00
parent c2c3aba65f
commit 830e7c4e4f
2 changed files with 9 additions and 3 deletions

View file

@ -93,4 +93,5 @@ $wgAutoloadClasses['MWEchoNotifUser'] = __DIR__ . '/includes/NotifUser.php';
$wgAutoloadClasses['MWEchoNotifUserTest'] = __DIR__ . '/tests/phpunit/includes/NotifUserTest.php'; $wgAutoloadClasses['MWEchoNotifUserTest'] = __DIR__ . '/tests/phpunit/includes/NotifUserTest.php';
$wgAutoloadClasses['MWEchoNotificationEmailBundleJob'] = __DIR__ . '/jobs/NotificationEmailBundleJob.php'; $wgAutoloadClasses['MWEchoNotificationEmailBundleJob'] = __DIR__ . '/jobs/NotificationEmailBundleJob.php';
$wgAutoloadClasses['NotificationControllerTest'] = __DIR__ . '/tests/phpunit/controller/NotificationControllerTest.php'; $wgAutoloadClasses['NotificationControllerTest'] = __DIR__ . '/tests/phpunit/controller/NotificationControllerTest.php';
$wgAutoloadClasses['SpecialNotifications'] = __DIR__ . '/special/SpecialNotifications.php';
$wgAutoloadClasses['SuppressionMaintenanceTest'] = __DIR__ . '/tests/phpunit/maintenance/SupressionMaintenanceTest.php'; $wgAutoloadClasses['SuppressionMaintenanceTest'] = __DIR__ . '/tests/phpunit/maintenance/SupressionMaintenanceTest.php';

View file

@ -133,9 +133,14 @@ function main() {
$base = dirname( __DIR__ ); $base = dirname( __DIR__ );
$generator = new AutoloadGenerator( $base ); $generator = new AutoloadGenerator( $base );
$dirs = array( $dirs = array(
'api', 'controller', 'api',
'formatters', 'includes', 'controller',
'jobs', 'model', 'tests' 'formatters',
'includes',
'jobs',
'model',
'special',
'tests',
); );
foreach ( $dirs as $dir ) { foreach ( $dirs as $dir ) {
$generator->readDir( $base . '/' . $dir ); $generator->readDir( $base . '/' . $dir );