Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders
ProductAttributesLookupServiceProvider{}
Service provider for the ProductAttributesLookupServiceProvider namespace.
No Hooks.
Usage
$ProductAttributesLookupServiceProvider = new ProductAttributesLookupServiceProvider(); // use class methods
Methods
- public register()
ProductAttributesLookupServiceProvider{} ProductAttributesLookupServiceProvider{} code WC 9.4.2
class ProductAttributesLookupServiceProvider extends AbstractServiceProvider { /** * The classes/interfaces that are serviced by this service provider. * * @var array */ protected $provides = array( DataRegenerator::class, Filterer::class, LookupDataStore::class, CLIRunner::class, ); /** * Register the classes. */ public function register() { $this->share( DataRegenerator::class )->addArgument( LookupDataStore::class ); $this->share( Filterer::class )->addArgument( LookupDataStore::class ); $this->share( LookupDataStore::class ); $this->share( CLIRunner::class )->addArguments( array( DataRegenerator::class, LookupDataStore::class ) ); } }