WordPress at Your Fingertips
class is not described

Automattic\WooCommerce\Blocks\Registry

FactoryType{} WC 2.5.0

Definition for the FactoryType dependency type.

No Hooks.

Return

null. Nothing.

Usage

$FactoryType = new FactoryType();
// use class methods

Methods

  1. get( Container $container )

Changelog

Since 2.5.0 Introduced.

Code of FactoryType{} WC 5.6.0

class FactoryType extends AbstractDependencyType {
	/**
	 * Invokes and returns the value from the stored internal callback.
	 *
	 * @param Container $container  An instance of the dependency injection
	 *                              container.
	 *
	 * @return mixed
	 */
	public function get( Container $container ) {
		return $this->resolve_value( $container );
	}
}