[wp-trac] [WordPress Trac] #36335: Next generation: core autoloader proposal
WordPress Trac
noreply at wordpress.org
Mon May 7 06:59:42 UTC 2018
#36335: Next generation: core autoloader proposal
-----------------------------+-----------------------------
Reporter: dnaber-de | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+-----------------------------
Comment (by alicewondermiscreations):
The github gist I linked to has been updated - I fixed the few typos and
threw it in mu-plugins and it autoloads any namespaced class installed
within the wp-psr directory according to vendor/product structure.
Maybe windows needs different separator in line 63, I never did anything
php on windows before.
Tested in php 7.1
And to be honest, the complexity of what is suggested in this bug report
is too much. Just keep things simple and less issues are created, in my
opinion. Things like classmap support are only really needed for legacy,
but since there is previous autoloader, legacy isn't an issue. plugins and
themes know where to find their own class and function files and don't
need them autoloaded by a core autoloader.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36335#comment:244>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list