Support named arguments in ObjectFactory
authorGergő Tisza <tgr.huwiki@gmail.com>
Thu, 29 Oct 2015 02:06:37 +0000 (19:06 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Mon, 23 Nov 2015 23:04:08 +0000 (23:04 +0000)
commit20b7696494572b6ce8b7bd70d63cdc186484d5af
tree9e9edabf2c2d077b5b851ccf01a93fdbc5a3a39d
parent439dc7585749556ae250c3d87ab1ab6154d3294f
Support named arguments in ObjectFactory

Arguments are sometimes given as array( 'foo' => 1, 'bar' => 2 )
which makes the configuration self-documenting.

Change-Id: I43aa085090f1014ba841641867ebf9559d16e76d
includes/libs/ObjectFactory.php
tests/phpunit/includes/libs/ObjectFactoryTest.php