[wp-trac] [WordPress Trac] #48963: Deprecate and replace globals in core with service container

WordPress Trac noreply at wordpress.org
Fri Dec 13 14:07:43 UTC 2019


#48963: Deprecate and replace globals in core with service container
-------------------------+------------------------------
 Reporter:  taraschr     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by ayeshrajans):

 Welcome back to Trac, @taraschr.

 While there is a recent trend in keeping WordPress core modern (with error
 handlers, PHP 5.6 as minimum PHP version, etc), WordPress still tries to
 be vastly compatible with millions of existing sites.

 I suppose the first steps would be add support for composer packages,
 which would then allow to use a container like Pimple. It wouldn't make
 sense to allow containers/service locators for classes that are already
 instantiated and just scattered every where... i.e how things are right
 now.

 I welcome you to join the Slack channel to have a conversation with core
 maintainers, specially `#core-php` on this.

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


More information about the wp-trac mailing list