312383ae47
- Add PHP League's Container package via Composer. - Add an ObjectContainer class that encapsulates all the configuration and insulates the codebase from the concrete DI engine used. - Add an improved ReflectionContainer class that will allow to register individual classes as singletons while autowiring. - Use ObjectContainer to resolve the WooCommerce class, everything instantiated with "new" inside it, and all singletons that are usually obtained via WC() function. - Introduce the CustomerProvider class. - Introduce a service provider to resolve WC_Queue_Interface, this replaces the WC_Queue class. - Mark as obsolete all the replaced "instance()" methods, and the entire WC_Queue class. |
||
---|---|---|
.. | ||
class-wc-action-queue.php | ||
class-wc-queue.php |