Implementing an autload mechanism
Status: Beta
Brought to you by:
ohenry
In the case of a developement made into a recent framework, we do not need to declare file dependencies through "require_once" directives.
When loading recursively a directory of source files with phimx, it does a "requires" on files. When dependencies are not declared, it crashes in a fatal error.
To prevent this from appening, you could implement an autoload mechanisms through spl_autoload_register().
It would cache the parsed files and use them when a not loaded class is used.
Implementation and testing is already done in this file (PHiMX_Runner.php).
Please check it and commit it into the sourceforge repository if you validate it.
Regards,
Vincent MICHEL
File with the described functionnality