HTMLForm: Use ObjectFactory instead of Reflection
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 14 Aug 2016 03:48:29 +0000 (20:48 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 14 Aug 2016 03:48:29 +0000 (20:48 -0700)
commit7f5c0cffd82ae7784c2dfc41a04bfd22547832df
tree824913e94111b99a609447a4073853d5cb1a21ed
parentb0f013f9db1751c392e6e689aea7fd207a2cc6d4
HTMLForm: Use ObjectFactory instead of Reflection

ObjectFactory has a hack that constructs an object directly if there are
less than 10 parameters, which there typically is for HTMLForm classes.
This is faster than using ReflectionClass, and whenever ObjectFactory is
updated to take advantage of the splat operator, this will automatically
use it as well.

And use ::class while we're at it.

Change-Id: I7a696c127c237713448b165b9b4faee13f4ff88e
includes/htmlform/HTMLForm.php