Automattic\WooCommerce\Internal\DependencyManagement
RuntimeContainer::__construct
Initializes a new instance of the class.
Method of the class: RuntimeContainer{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$RuntimeContainer = new RuntimeContainer(); $RuntimeContainer->__construct( $initial_resolved_cache );
- $initial_resolved_cache(array) (required)
- Dictionary of class name => instance, to be used as the starting point for the resolved classes cache.
RuntimeContainer::__construct() RuntimeContainer:: construct code WC 9.9.3
public function __construct( array $initial_resolved_cache ) { $this->initial_resolved_cache = $initial_resolved_cache; $this->resolved_cache = $initial_resolved_cache; }