Remove stubiness from AuthPlugin
authorChad Horohoe <chadh@wikimedia.org>
Fri, 31 Jan 2014 16:34:21 +0000 (08:34 -0800)
committerAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Thu, 6 Feb 2014 23:20:37 +0000 (00:20 +0100)
The point of stubs is to delay loading tons of code as late as
possible. AuthPlugin is about the same size as StubObject, so
we're not really saving anything.

Change-Id: Icb36e47a8e9ff9f0f60ac1a8f1698102a1aa2366

includes/Setup.php

index 531d1a4..40b3395 100644 (file)
@@ -560,7 +560,7 @@ $wgOut = RequestContext::getMain()->getOutput(); # BackCompat
 $wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) );
 
 if ( !is_object( $wgAuth ) ) {
-       $wgAuth = new StubObject( 'wgAuth', 'AuthPlugin' );
+       $wgAuth = new AuthPlugin;
        wfRunHooks( 'AuthPluginSetup', array( &$wgAuth ) );
 }