Wikia/app — pull request #856 by Wyvek (2013-05-23 02:20:28+00:00)
Title: Back to roots

Ready to be merged.
Unit tests work.

Benefits:
* Faster code (3% of average)
* Closer to MW (lower learning curve)

List of changes:
* F::build changed to new class();
**including various class changed to allow them to work without F::setInstance if they relayed on it before
**including various constructor changes if F::setConstructor was used to add default parameters
*???->wf->Function() changed to wfFunction() direct calls
*Removal of function calls from .setup files
**$app->registerClass changed to wgAutoloadClasses
**$app->registerExtensionMessageFile to direct array manipulation
*Removal of registerHook in favor of wgHooks (saves function call during initialization, saves wrapper function call during callback execution)
*Some hook handlers were changed either for compatibility reasons (no state kept by default during hook execution) or for clarity (splitting functionality into classes)
*Various changes and some bugfixes (i.e. switched from UserProfile helper function being "Nirvana request" that returns user object from title to being regular function call, Nirvana call was overkill for such a simple task and resulted in unnecessary template rendering)
*MW Autoloader changed to no longer loop over MW classes in case of lookup fail (should speed up lookups for Search functions and Sass functions which use separate autoloader)
*Updated UnitTests to relay on runkit instead of F::build

@federico-lox @owend Please have a look