MDL-43365 lib: added better means of renaming classes for autoloading
authorSam Hemelryk <sam@moodle.com>
Tue, 24 Jun 2014 21:28:27 +0000 (09:28 +1200)
committerSam Hemelryk <sam@moodle.com>
Tue, 24 Jun 2014 21:28:30 +0000 (09:28 +1200)
commit37e600076da3f6f8246cf524d3ff570a6f150268
tree500fccdd337413949cf740049c2f48d32f8d1b7d
parent7784c3ad18371607780f2845d44db291112b816e
MDL-43365 lib: added better means of renaming classes for autoloading

I've added a better means of renaming classes for autoloading and
handling the deprecation of the original class name.
This system records renamed classes in db/renamedclasses.php and
when a renamed class is requested a debugging notice is printed
and a class alias is created so that the calling code both works
and is informed of the deprecation.
lib/classes/component.php