Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders
ProductReviewsServiceProvider{}
Service provider for the classes in the Internal\Admin\ProductReviews namespace.
Хуков нет.
Использование
$ProductReviewsServiceProvider = new ProductReviewsServiceProvider(); // use class methods
Методы
- public register()
Код ProductReviewsServiceProvider{} ProductReviewsServiceProvider{} WC 9.2.3
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 ); } }