X-Git-Url: http://git.cyclocoop.org//%27http:/ie7-js.googlecode.com/svn/test/index.html/%27?a=blobdiff_plain;f=docs%2Finjection.txt;h=83a14c730dcc1662c5f54f6cfca18eeeee85372e;hb=a59448846eefc2ae7276ead0478a6743c0a00f9b;hp=2badea98cbf7895a0170ad3418ee79e0593b163e;hpb=cdc53ad15b8131e1b4254cc788efa318a35fd804;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/injection.txt b/docs/injection.txt index 2badea98cb..83a14c730d 100644 --- a/docs/injection.txt +++ b/docs/injection.txt @@ -219,7 +219,7 @@ already known to MediaWikiServices (if not, see above). variables. * Add a constructor to MyExtHooks that takes a Bar service as a parameter. * Add a static method called newFromGlobalState() with no parameters. It should - just return new MyExtHooks( MediaWikiServices::getBar() ). + just return new MyExtHooks( MediaWikiServices::getInstance()->getBar() ). * The original static handler method onFoo( $x ) is then implemented as self::newFromGlobalState()->doFoo( $x ).