Container

A simple Dependency Injection Container


Description Description

This is used to manage dependencies used throughout the plugin.


Source Source

File: packages/woocommerce-blocks/src/Registry/Container.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

Methods Methods

  • factory — Public api for adding a factory to the container.
  • get — Interface for retrieving the dependency stored in the container for the given identifier.
  • register — Interface for registering a new dependency with the container.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.