Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders
OrderAttributionServiceProvider{}
Class OrderAttributionServiceProvider
Хуков нет.
Использование
$OrderAttributionServiceProvider = new OrderAttributionServiceProvider(); // use class methods
Методы
- public register()
Список изменений
С версии 8.5.0 | Введена. |
Код OrderAttributionServiceProvider{} OrderAttributionServiceProvider{} WC 9.6.1
class OrderAttributionServiceProvider extends AbstractInterfaceServiceProvider { /** * The classes/interfaces that are serviced by this service provider. * * @var array */ protected $provides = array( OrderAttributionController::class, OrderAttributionBlocksController::class, WPConsentAPI::class, ); /** * Register the classes. */ public function register() { $this->share_with_implements_tags( WPConsentAPI::class ); $this->share_with_implements_tags( OrderAttributionController::class ) ->addArguments( array( LegacyProxy::class, FeaturesController::class, WPConsentAPI::class, ) ); $this->share_with_implements_tags( OrderAttributionBlocksController::class ) ->addArguments( array( StoreApi::container()->get( ExtendSchema::class ), FeaturesController::class, OrderAttributionController::class, ) ); } }