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