[wp-trac] [WordPress Trac] #36335: Next generation: core autoloader proposal

WordPress Trac noreply at wordpress.org
Tue Sep 6 14:13:53 UTC 2016


#36335: Next generation: core autoloader proposal
-----------------------------+------------------
 Reporter:  dnaber-de        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  4.7
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------

Comment (by TJNowell):

 @JohnPBloch if the Composer autoloader is the best, it will show in time,
 so lets work on a simpler homegrown autoloader for now and learn from the
 Composer projects lessons.

 I will say though, that we should filter things such that we can replace
 the autoloader. A composer autoloader still has merit for some developers,
 and I'd like to see experimentation in the future be possible, perhaps as
 a wp-config.php constant that disables the autoloader, on the premise that
 you will be loading your own.

 A classmap containing an absolute namespaced class name and the file it
 resides in will suffice for our needs. 2 files, for an autoloader
 implementation, and a generated mapping file should be all that we need

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36335#comment:181>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list