Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders
MarketingServiceProvider{}
Service provider for the non-static utils classes in the Automattic\WooCommerce\src namespace.
Хуков нет.
Использование
$MarketingServiceProvider = new MarketingServiceProvider(); // use class methods
Методы
- public register()
Список изменений
С версии . | Введена. |
Код MarketingServiceProvider{} MarketingServiceProvider{} WC 9.3.1
class MarketingServiceProvider extends AbstractServiceProvider { /** * The classes/interfaces that are serviced by this service provider. * * @var array */ protected $provides = array( MarketingSpecs::class, MarketingChannels::class, ); /** * Register the classes. */ public function register() { $this->share( MarketingSpecs::class ); $this->share( MarketingChannels::class ); } }