Pending

User tests: Successful: Unsuccessful:

avatar dongilbert
dongilbert
9 Apr 2013

This PR adds the ability for developers to integrate PSR-0 compatible code into their applications, such as that from the new Joomla Framework, and allow it to be registered properly to the autoloader.

Tracker item for this is here: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30525

avatar dongilbert dongilbert - open - 9 Apr 2013
avatar eddieajau
eddieajau - comment - 9 Apr 2013

+1

avatar KISS-Web-Design
KISS-Web-Design - comment - 9 Apr 2013

+1

avatar dongilbert
dongilbert - comment - 10 Apr 2013

I'll add some documentation for this as well. The usage is slightly different from what we are used to with JLoader.

avatar eddieajau
eddieajau - comment - 10 Apr 2013

Should probably add some test cases as well.

avatar mahagr
mahagr - comment - 11 Apr 2013

+1 from me too.

avatar javigomez
javigomez - comment - 4 Jun 2013

Excelent!!!
Thanks a lot @dongilbert ^_^

avatar mbabker
mbabker - comment - 4 Jun 2013

Don - Now that we're unit testing JLoader in the CMS, would you mind writing test cases for this loader (and possibly the other namespace loaders) so we make sure the CMS doesn't accidentally break this in the future?

avatar dongilbert
dongilbert - comment - 4 Jun 2013

I can write them up for this method, sure.

Florian had written the UT's for the other namespace loaders. However, I don't think we should keep them around, it was a mistake, IMO, to do it that way. Sure, it keeps it flexible, but it also keeps it complicated. I wonder if we could / should remove them. (I realize the viewpoint of the previous maintainers was a bit different.)

avatar mbabker
mbabker - comment - 4 Jun 2013

If the Joomla "standard" autoloader and the PSR-0 autoloader are all we really need in the CMS, I have no issue backing out the other stuff. We've been doing a lot of re-syncing between the CMS and Platform repos over the last few weeks, JLoader was just one of those classes that was synced in full. We're at a point where we can put some thought into what parts of the Platform we want to keep in the CMS and what should just disappear. For the NS loaders, that decision needs to come quick though; if 3.1.2 is released with them, we're stuck until 4.0.

avatar dongilbert
dongilbert - comment - 4 Jun 2013

Then let's please remove them.

avatar mbabker
mbabker - comment - 4 Jun 2013

I'll add it to the to-do list for when I get off work unless I'm beaten to the punch.

avatar dongilbert
dongilbert - comment - 4 Jun 2013

The Joomla "standard", PSR-0, and the soon to be ratified PSR-X will, in my opinion, meet all the needs of the CMS and it's developers.

avatar mbabker
mbabker - comment - 5 Jun 2013

I've dropped out the namespace loaders and provisioned the PSR-0 autoloader into JLoader::setup() (disabled by default for the time being).

Add a Comment

Login with GitHub to post a comment