[wp-trac] [WordPress Trac] #37699: Death to Globals Episode #1: A Registry, A Pattern

WordPress Trac noreply at wordpress.org
Wed Aug 31 03:52:07 UTC 2016


#37699: Death to Globals Episode #1: A Registry, A Pattern
----------------------------+------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  4.7
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------

Comment (by wonderboymusic):

 `WP_Container` is just a POC, with `Pimple` in mind. `$wp_version` is a
 bad example, but one that's easy to test. The first goal is to reduce
 global imports as much as possible. Second is to use some form of
 registry/container to store instances, while also setting globals to
 maintain BC - mainly, an abstraction that hides away the global nonsense.
 I don't feel comfortable with what I have yet.

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


More information about the wp-trac mailing list