mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 09:40:41 +00:00
Merge "Bug: Detect classes within the special directory"
This commit is contained in:
commit
d24b803a25
|
@ -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';
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue