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['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 );