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

WordPress Trac noreply at wordpress.org
Fri Sep 2 08:20:05 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 dnaber-de):

 Replying to [comment:154 MikeSchinkel]:

 > Minimally I think if we are going to discuss an autoloader based on
 Composer we should respect @dnaber-de and not hijack his ticket.  Instead
 we should discuss his proposal ''(which I think is mostly good)'' and give
 it a thumbs up or a thumbs down.

 I'm perfectly fine with the direction the ticket goes (until the
 discussion went somehow off topic), but thanks. My intention was to have a
 single autoloader instance for performance reasons. If that would have
 been a custom implementation I'd have to write a composer plugin that uses
 this WordPress own implementation. If WordPress uses Composer itself, it's
 even better. I read opposed arguments, thought about it and finally let
 them convince me that this is the best way to go.

 Replying to [comment:152 TJNovel]
 > As an aside, Core could include a Composer autoloader if it exists, even
 if it doesn't make use of it internally. This would be a great help for
 those of us who use Composer, eliminating an extra step in the setup, and
 standardising when the autoloader is added.

 Exactly. That would be the next step to take, to make WordPress
 configurable to include an external composer autoload file if WordPress is
 installed via composer. So let's focus on the topic and discuss
 @schlessera 's proposal and move the `composer.json` back to the root of
 the repository.

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


More information about the wp-trac mailing list