[wp-trac] [WordPress Trac] #60414: Core PHP autoloader proposal

WordPress Trac noreply at wordpress.org
Thu Aug 8 18:51:14 UTC 2024


#60414: Core PHP autoloader proposal
-------------------------------------+-------------------------------------
 Reporter:  aristath                 |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-unit-      |     Focuses:  performance,
  tests early                        |  sustainability
-------------------------------------+-------------------------------------

Comment (by justlevine):

 Replying to [comment:35 jorbin]:
 > I think any autoloader needs to make it so that files can not be
 overloaded and if that's not possible, this ticket should be closed as
 `wontfix`.

 Idk that feels pretty arbitrary to me. While I definitely want to see
 overloading as well (and as soon as possible), even this "barebones"
 approach that means you no longer need to litter your code with
 conditional `require_once` calls is already a significant DX win and a way
 to make concrete progress on an 8-year old issue.

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


More information about the wp-trac mailing list