Automattic\WooCommerce\Internal\DependencyManagement

ExtendedContainer::reset_all_resolved()publicWC 1.0

Reset all the cached resolutions, so any further "get" for shared definitions will generate the instance again.

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

No Hooks.

Return

null. Nothing.

Usage

$ExtendedContainer = new ExtendedContainer();
$ExtendedContainer->reset_all_resolved();

Код ExtendedContainer::reset_all_resolved() WC 7.1.0

public function reset_all_resolved() {
	foreach ( $this->definitions->getIterator() as $definition ) {
		// setConcrete causes the cached resolved value to be forgotten.
		$concrete = $definition->getConcrete();
		$definition->setConcrete( $concrete );
	}
}