Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders
StatsServiceProvider{}
Service provider for the Stats.
Хуков нет.
Использование
$StatsServiceProvider = new StatsServiceProvider(); // use class methods
Методы
- public register()
Код StatsServiceProvider{} StatsServiceProvider{} WC 9.5.1
class StatsServiceProvider extends AbstractServiceProvider { /** * The classes/interfaces that are serviced by this service provider. * * @var array */ protected $provides = array( McStats::class, ); /** * Register the classes. */ public function register() { $this->add( McStats::class ); } }