Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

ProductAttributesLookupServiceProvider{}WC 1.0

Service provider for the ProductAttributesLookupServiceProvider namespace.

Хуков нет.

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

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

Методы

  1. public register()

Код ProductAttributesLookupServiceProvider{} WC 7.1.0

class ProductAttributesLookupServiceProvider extends AbstractServiceProvider {

	/**
	 * The classes/interfaces that are serviced by this service provider.
	 *
	 * @var array
	 */
	protected $provides = array(
		DataRegenerator::class,
		Filterer::class,
		LookupDataStore::class,
	);

	/**
	 * Register the classes.
	 */
	public function register() {
		$this->share( DataRegenerator::class )->addArgument( LookupDataStore::class );
		$this->share( Filterer::class )->addArgument( LookupDataStore::class );
		$this->share( LookupDataStore::class );
	}
}