Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OrderAdminServiceProvider{}WC 1.0

OrderAdminServiceProvider class.

No Hooks.

Usage

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

Methods

  1. public register()

Code of OrderAdminServiceProvider{} WC 7.1.0

class OrderAdminServiceProvider extends AbstractServiceProvider {

	/**
	 * List services provided by this class.
	 *
	 * @var string[]
	 */
	protected $provides = array(
		PageController::class,
		Edit::class,
		ListTable::class,
	);

	/**
	 * Registers services provided by this class.
	 *
	 * @return void
	 */
	public function register() {
		$this->share( PageController::class );
		$this->share( Edit::class )->addArgument( PageController::class );
		$this->share( ListTable::class )->addArgument( PageController::class );
	}
}