Automattic\WooCommerce\Internal\DependencyManagement

RuntimeContainer::__construct()publicWC 1.0

Initializes a new instance of the class.

Метод класса: RuntimeContainer{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$RuntimeContainer = new RuntimeContainer();
$RuntimeContainer->__construct( $initial_resolved_cache );
$initial_resolved_cache(массив) (обязательный)
Dictionary of class name => instance, to be used as the starting point for the resolved classes cache.

Код RuntimeContainer::__construct() WC 9.5.1

public function __construct( array $initial_resolved_cache ) {
	$this->initial_resolved_cache = $initial_resolved_cache;
	$this->resolved_cache         = $initial_resolved_cache;
}