Add ApiModuleManager::getClassName()
authorKunal Mehta <legoktm@gmail.com>
Fri, 15 Aug 2014 22:45:16 +0000 (15:45 -0700)
committerKunal Mehta <legoktm@gmail.com>
Mon, 8 Sep 2014 09:06:33 +0000 (02:06 -0700)
commitad9bb085a69b6b3a726677ab688d3a2c8b599120
tree37db7509ad2db93fd5dd92f6065613dc2c995c6f
parent43f46b6c92aaaee0678d6516e799aa8717efda42
Add ApiModuleManager::getClassName()

In cases where an extension has multiple API modules that
have the same exact factory requirements, it would let them
use the same factory function and check with the module manager
what the class name to construct should be. This is already possible
using getNamesWithClasses, but this makes it much more
straightforward.

Change-Id: I889e3e6f15907896a8df376913125d903debe984
includes/api/ApiModuleManager.php
tests/phpunit/includes/api/ApiModuleManagerTest.php