Automattic\WooCommerce\Blocks\Registry

SharedType::get()publicWC 1.0

Returns the internal stored and shared value after initial generation.

Method of the class: SharedType{}

No Hooks.

Return

Mixed.

Usage

$SharedType = new SharedType();
$SharedType->get( $container );
$container(Container) (required)
An instance of the dependency injection container.

SharedType::get() code WC 8.7.0

public function get( Container $container ) {
	if ( empty( $this->shared_instance ) ) {
		$this->shared_instance = $this->resolve_value( $container );
	}
	return $this->shared_instance;
}