Automattic\WooCommerce\Blocks\Registry
SharedType::get()
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() SharedType::get code WC 9.5.1
public function get( Container $container ) { if ( empty( $this->shared_instance ) ) { $this->shared_instance = $this->resolve_value( $container ); } return $this->shared_instance; }