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 Medium.Nov 22 2014, 1:55 AM
bzimport set Reference to bz53835.
bzimport added a subscriber: Unknown Object (MLST).

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

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.