Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders
MarketingServiceProvider{}
Service provider for the non-static utils classes in the Automattic\WooCommerce\src namespace.
No Hooks.
Usage
$MarketingServiceProvider = new MarketingServiceProvider(); // use class methods
Methods
- public register()
Changelog
Since . | Introduced. |
MarketingServiceProvider{} MarketingServiceProvider{} code 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 ); } }