Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

ProductReviewsServiceProvider{}WC 1.0

Service provider for the classes in the Internal\Admin\ProductReviews namespace.

Хуков нет.

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

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

Методы

  1. public register()

Код ProductReviewsServiceProvider{} WC 6.7.0

class ProductReviewsServiceProvider extends AbstractServiceProvider {

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

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