Merge "Bug: Detect classes within the special directory"

This commit is contained in:
jenkins-bot 2014-10-24 23:12:38 +00:00 committed by Gerrit Code Review
commit d24b803a25
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['MWEchoNotificationEmailBundleJob'] = __DIR__ . '/jobs/NotificationEmailBundleJob.php';
$wgAutoloadClasses['NotificationControllerTest'] = __DIR__ . '/tests/phpunit/controller/NotificationControllerTest.php';
$wgAutoloadClasses['SpecialNotifications'] = __DIR__ . '/special/SpecialNotifications.php';
$wgAutoloadClasses['SuppressionMaintenanceTest'] = __DIR__ . '/tests/phpunit/maintenance/SupressionMaintenanceTest.php';

View file

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