Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OrdersControllersServiceProvider{}WC 1.0

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

Хуков нет.

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

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

Методы

  1. public register()

Код OrdersControllersServiceProvider{} WC 9.4.2

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