Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders
OrdersControllersServiceProvider{}
Service provider for the orders controller classes in the Automattic\WooCommerce\Internal\Orders namespace.
Хуков нет.
Использование
$OrdersControllersServiceProvider = new OrdersControllersServiceProvider(); // use class methods
Методы
- public register()
Код OrdersControllersServiceProvider{} OrdersControllersServiceProvider{} WC 9.4.2
class OrdersControllersServiceProvider extends AbstractServiceProvider { /** * The classes/interfaces that are serviced by this service provider. * * @var array */ protected $provides = array( CouponsController::class, TaxesController::class, ); /** * Register the classes. */ public function register() { $this->share( CouponsController::class ); $this->share( TaxesController::class ); } }