Closed (fixed)
Project:
psr0 autoloader
Version:
7.x-1.0-alpha1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2013 at 10:20 UTC
Updated:
15 Sep 2013 at 13:41 UTC
Hi,
some observations.
With PSR-0 you usually need to replace the underscores after the last namespace separator with directory separators.
So, Foo_Bar\Baz_Buz becomes Foo_Bar/Baz/Buz.
However, having this underscore in the class name is against Drupal coding standards (afaik), so we could ignore that.
Although, the OOP coding standard for D7 is a joke..
In the PSR-4 discussion, it is not settled yet whether to use lib or src.
You had to make a choice, and you chose lib - which is fine.
None of these is a problem, but maybe you want to mention it on the project page.
I make this a support request, but it would rather fit in the "casual talk" category :)
Comments
Comment #1
torotil commentedPerhaps I'll just support src/ and lib/ until the issue is settled… I've had the impression that decision is for lib/ except when there is some additional arguments for src/ (which I didn't see). I think there is also no point in not supporting underscores …
Thanks for the suggestions, again! I wish that everyone on d.o was that helpful.
Comment #2
torotil commentedpsr0 now supports src/ and underscores ;)