• File: FactoryType.php
  • Full Path: /var/www/trendyshoppers.co.uk/public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/FactoryType.php
  • Date Modified: 03/03/2026 5:22 AM
  • File size: 505 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
namespace Automattic\WooCommerce\Blocks\Registry;

/**
 * Definition for the FactoryType dependency type.
 *
 * @since 2.5.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 );
	}
}