Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OptionSanitizerServiceProvider{}WC 1.0

Service provider for the OptionSanitizer class.

Хуков нет.

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

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

Методы

  1. public register()

Код OptionSanitizerServiceProvider{} WC 6.6.1

class OptionSanitizerServiceProvider extends AbstractServiceProvider {

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

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

}