Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OrderMetaBoxServiceProvider{}WC 1.0

OrderMetaBoxServiceProvider class.

No Hooks.

Usage

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

Methods

  1. public register()

OrderMetaBoxServiceProvider{} code WC 7.1.1

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 );
	}

}