Page MenuHomePhabricator

Provide a PSR-4 autoloader
Closed, DeclinedPublic

Description


Version: unspecified
Severity: enhancement

Details

Reference
bz53835

Related Objects

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 1:55 AM
bzimport set Reference to bz53835.
bzimport added a subscriber: Unknown Object (MLST).
awight created this task.Sep 6 2013, 2:12 AM
awight added a comment.Sep 6 2013, 2:18 AM

See change I5574895b3cabc46ca74f67113de1a03959e2abf3: "Autodiscover classfiles via namespace hierarchy", and https://github.com/php-fig/fig-standards/blob/master/proposed/psr-4-autoloader/psr-4-autolader.md

Offer an additional autoloader mechanism.

Change 59804 had a related patch set uploaded by Adamw:
Autodiscover classfiles via namespace hierarchy

https://gerrit.wikimedia.org/r/59804

Change 59804 had a related patch set uploaded by Parent5446:
(bug 53835) Autodiscover classfiles via namespace hierarchy

https://gerrit.wikimedia.org/r/59804

Change 59804 had a related patch set uploaded by Adamw:
(bug 53835) Autodiscover classfiles via namespace hierarchy

https://gerrit.wikimedia.org/r/59804

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 23 2015, 10:08 AM
awight closed this task as Declined.Mar 13 2016, 4:13 PM

I'm not sure if this is the top-level task, but see T85182. We've implemented autoloading using static classmaps which are generated by a script, composer autoload. This fixes the most annoying failure to DRY, since we no longer have to add newly created classes to the crazy-long master list.