ObjectFactory: add support for setter injection
authorBryan Davis <bd808@wikimedia.org>
Thu, 30 Jul 2015 17:24:07 +0000 (11:24 -0600)
committerBryan Davis <bd808@wikimedia.org>
Thu, 30 Jul 2015 17:24:07 +0000 (11:24 -0600)
commite53600c4b6471cd1391816570c423c8fd0828502
tree62b17517529e010f85b918421b3467c2483e3c63
parent7048ff8301090e438e7ad9b2826711ad4b33fae0
ObjectFactory: add support for setter injection

Extend ObjectFactory::getObjectFromSpec() to support setter injection on
created objects when the specification includes a 'calls' member.

Bug: T107440
Change-Id: Ie2ece2e9658dd2d895d3935da4dc2da8a0a316e2
includes/libs/ObjectFactory.php
tests/phpunit/includes/libs/ObjectFactoryTest.php