Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

FeaturesServiceProvider{}WC 1.0

Service provider for the features enabling/disabling/compatibility engine.

Хуков нет.

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

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

Методы

  1. public register()

Код FeaturesServiceProvider{} WC 7.1.0

class FeaturesServiceProvider extends AbstractServiceProvider {

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

	/**
	 * Register the classes.
	 */
	public function register() {
		$this->share( FeaturesController::class )
			->addArguments( array( LegacyProxy::class, PluginUtil::class ) );
	}
}