WordPress at a glance
class is not described

Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

AssignDefaultCategoryServiceProvider{} WC 1.0

Service provider for the AssignDefaultCategory class.

No Hooks.

Return

null. Nothing.

Usage

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

Methods

  1. register()

Code of AssignDefaultCategoryServiceProvider{} WC 5.4.1

<?php
class AssignDefaultCategoryServiceProvider extends AbstractServiceProvider {

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

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