Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

DownloadPermissionsAdjusterServiceProvider{}WC 1.0

Service provider for the DownloadPermissionsAdjuster class.

Хуков нет.

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

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

Методы

  1. public register()

Код DownloadPermissionsAdjusterServiceProvider{} WC 7.1.0

class DownloadPermissionsAdjusterServiceProvider extends AbstractServiceProvider {

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

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