[Core] Cleanup of the Autoloader and PSR-0 support

Review Request #15 — Created Nov. 24, 2012 and submitted

pprkut
Lunr
master
lunr
This removes unused code (references to the web, webservice and cli controller which are remnants of 0.1 code) as well as some unnecessary code (included file tracking).
It also adds file existance checking using stream_resolve_include_path and most importantly support for loading classes compliant with PSR-0.

The autoloader now support loading classes using either the PSR-0 specs or the Lunr-0.1 specs. PSR-0 is preferred and therefore gets the faster codepath.
unit tests
pprkut
Felipe
  1. Awesome! we get to keep both :) isn't that a problem with performance or code cleanness? I'm not sure how awesome would it be to deal with a project mixing both sintaxes
    1. It would be horrible, which is why it will never be the case :D
      There is obviously a slight increase in memory usage since we load code that we never use (ideally). Acceptable IMHO. The performance drawback is only visible to Lunr-0.1 style projects, as PSR-0 gets the fast codepath.
      As you can guess from this, the next step here is to move Lunr from 0.1 style to PSR-0 ;)
    2. Luckily we have an awesome open source community behind to take care of boring tasks like this... oh wait...
    3. I have a script ready which does all the renaming and stuff :P
    4. Awesome!
  2. 
      
pprkut
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master
Loading...