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

WordPress Trac noreply at wordpress.org
Fri Aug 26 22:14:54 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 JohnPBloch):

 Replying to [comment:76 JohnPBloch]:
 > Evidently you can add a `"exclude-from-classmap"` entry to the autoload
 object in composer.json to exclude `wp-includes/vendor` from the classmap,
 so I think that would solve both concerns, yes? I'm still looking for
 documentation on that key, so I'll update if it doesn't quite work as I
 suspect.

 Adding the following to the `composer.json` autoload block should fix that
 class notice and prevent composer from adding vendor classes to the
 classmap:

 {{{
 "autoload": {
   "exclude-from-classmap": [
     "wp-includes/vendor"
   ]
 }
 }}}

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


More information about the wp-trac mailing list