Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OrderMetaBoxServiceProvider{}WC 1.0

OrderMetaBoxServiceProvider class.

Хуков нет.

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

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

Методы

  1. public register()

Код OrderMetaBoxServiceProvider{} WC 6.9.4

class OrderMetaBoxServiceProvider extends AbstractServiceProvider {

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

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

}