Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OptionSanitizerServiceProvider{}WC 1.0

Service provider for the OptionSanitizer class.

No Hooks.

Usage

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

Methods

  1. public register()

Code of OptionSanitizerServiceProvider{} WC 7.1.0

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

}