Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

ProxiesServiceProvider{}WC 1.0

Service provider for the classes in the Automattic\WooCommerce\Proxies namespace.

Хуков нет.

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

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

Методы

  1. public register()

Код ProxiesServiceProvider{} WC 6.6.1

class ProxiesServiceProvider extends AbstractServiceProvider {

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

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