Automattic\WooCommerce\Blocks\Registry
SharedType::get
Returns the internal stored and shared value after initial generation.
Method of the class: SharedType{}
No Hooks.
Returns
Mixed.
Usage
$SharedType = new SharedType(); $SharedType->get( $container );
- $container(Container) (required)
- An instance of the dependency injection container.
SharedType::get() SharedType::get code WC 10.4.3
public function get( Container $container ) {
if ( empty( $this->shared_instance ) ) {
$this->shared_instance = $this->resolve_value( $container );
}
return $this->shared_instance;
}