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

WordPress Trac noreply at wordpress.org
Fri Apr 22 09:32:20 UTC 2016


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

Comment (by schlessera):

 I just wrote a longer post about using Composer as a central autoloader
 for WordPress: https://www.alainschlesser.com/adding-central-autoloader-
 wordpress/

 '''Summary of the experiment, for those who don't want to read through the
 entire thing:'''
 - Adding a PHP 5.2 compatible autoloader to WordPress is a matter of
 '''changing just a few lines'''.
 - Having a "well-behaving" class be loaded through that autoloader
 "'''just works'''" (as demonstrated with `_WP_Editors` class.

 If there's interest in delving deeper into that approach, I'm more than
 willing to contribute.

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


More information about the wp-trac mailing list