Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OrdersControllersServiceProvider{}WC 1.0

Service provider for the orders controller classes in the Automattic\WooCommerce\Internal\Orders namespace.

No Hooks.

Usage

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

Methods

  1. public register()

Code of OrdersControllersServiceProvider{} WC 7.1.0

class OrdersControllersServiceProvider extends AbstractServiceProvider {

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

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