WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Internal\DependencyManagement

ExtendedContainer::get() public WC 1.0

Get an instance of a registered class.

{} It's a method of the class: ExtendedContainer{}

No Hooks.

Return

Object. An instance of the requested class.

Usage

$ExtendedContainer = new ExtendedContainer();
$ExtendedContainer->get( $id, $new );
$id(string) (required)
The class name.
$new(true|false)
True to generate a new instance even if the class was registered as shared.
Default: false

Code of ExtendedContainer::get() WC 5.9.0

public function get( $id, bool $new = false ) {
	if ( false === strpos( $id, '\\' ) ) {
		throw new ContainerException( "Attempt to get an instance of the non-namespaced class '$id' from the container, did you forget to add a namespace import?" );
	}

	return parent::get( $id, $new );
}