|
17 | 17 |
|
18 | 18 | return array( |
19 | 19 |
|
20 | | - 'compat.ppec.mock-gateway' => static function ( $container ) { |
| 20 | + 'compat.ppec.mock-gateway' => static function ( $container ) { |
21 | 21 | $settings = $container->get( 'settings.settings-provider' ); |
22 | 22 | assert( $settings instanceof SettingsProvider ); |
23 | 23 |
|
|
30 | 30 | return new PPEC\MockGateway( $title ); |
31 | 31 | }, |
32 | 32 |
|
33 | | - 'compat.ppec.billing-agreement-converter' => static function ( ContainerInterface $container ) { |
| 33 | + 'compat.ppec.billing-agreement-converter' => static function ( ContainerInterface $container ) { |
34 | 34 | return new PPEC\BillingAgreementTokenConverter( |
35 | 35 | $container->get( 'api.endpoint.payment-method-tokens' ), |
36 | 36 | $container->get( 'api.repository.customer' ), |
37 | 37 | $container->get( 'woocommerce.logger.woocommerce' ) |
38 | 38 | ); |
39 | 39 | }, |
40 | 40 |
|
41 | | - 'compat.ppec.subscriptions-handler' => static function ( ContainerInterface $container ) { |
| 41 | + 'compat.ppec.subscriptions-handler' => static function ( ContainerInterface $container ) { |
42 | 42 | return new PPEC\SubscriptionsHandler( |
43 | 43 | $container->get( 'wc-subscriptions.renewal-handler' ), |
44 | 44 | $container->get( 'compat.ppec.mock-gateway' ), |
|
47 | 47 | ); |
48 | 48 | }, |
49 | 49 |
|
50 | | - 'compat.plugin-script-names' => static function ( ContainerInterface $container ): array { |
| 50 | + 'compat.plugin-script-names' => static function ( ContainerInterface $container ): array { |
51 | 51 | return array( |
52 | 52 | 'ppcp-smart-button', |
53 | 53 | 'ppcp-oxxo', |
|
61 | 61 | ); |
62 | 62 | }, |
63 | 63 |
|
64 | | - 'compat.plugin-script-file-names' => static function ( ContainerInterface $container ): array { |
| 64 | + 'compat.plugin-script-file-names' => static function ( ContainerInterface $container ): array { |
65 | 65 | return array( |
66 | 66 | 'button.js', |
67 | 67 | 'gateway-settings.js', |
|
71 | 71 | ); |
72 | 72 | }, |
73 | 73 |
|
74 | | - 'compat.shiptastic.is_supported_plugin_version_active' => function (): bool { |
| 74 | + 'compat.shiptastic.is_supported_plugin_version_active' => function (): bool { |
75 | 75 | return function_exists( 'wc_stc_get_shipments' ); |
76 | 76 | }, |
77 | 77 |
|
78 | 78 | 'compat.wc_shipment_tracking.is_supported_plugin_version_active' => function (): bool { |
79 | 79 | return class_exists( 'WC_Shipment_Tracking' ); |
80 | 80 | }, |
81 | 81 |
|
82 | | - 'compat.ywot.is_supported_plugin_version_active' => function (): bool { |
| 82 | + 'compat.ywot.is_supported_plugin_version_active' => function (): bool { |
83 | 83 | return function_exists( 'yith_ywot_init' ); |
84 | 84 | }, |
85 | | - 'compat.dhl.is_supported_plugin_version_active' => function (): bool { |
| 85 | + 'compat.dhl.is_supported_plugin_version_active' => function (): bool { |
86 | 86 | return function_exists( 'PR_DHL' ); |
87 | 87 | }, |
88 | 88 | 'compat.shipstation.is_supported_plugin_version_active' => function (): bool { |
|
91 | 91 | 'compat.wc_shipping_tax.is_supported_plugin_version_active' => function (): bool { |
92 | 92 | return class_exists( 'WC_Connect_Loader' ); |
93 | 93 | }, |
94 | | - 'compat.nyp.is_supported_plugin_version_active' => function (): bool { |
| 94 | + 'compat.nyp.is_supported_plugin_version_active' => function (): bool { |
95 | 95 | return function_exists( 'wc_nyp_init' ); |
96 | 96 | }, |
97 | 97 | 'compat.wc_bookings.is_supported_plugin_version_active' => function (): bool { |
98 | 98 | return class_exists( 'WC_Bookings' ); |
99 | 99 | }, |
100 | 100 |
|
101 | | - 'compat.asset_getter' => static function ( ContainerInterface $container ): AssetGetter { |
| 101 | + 'compat.asset_getter' => static function ( ContainerInterface $container ): AssetGetter { |
102 | 102 | $factory = $container->get( 'assets.asset_getter_factory' ); |
103 | 103 | assert( $factory instanceof AssetGetterFactory ); |
104 | 104 |
|
105 | 105 | return $factory->for_module( 'ppcp-compat' ); |
106 | 106 | }, |
107 | 107 |
|
108 | | - 'compat.assets' => function ( ContainerInterface $container ): CompatAssets { |
| 108 | + 'compat.assets' => function ( ContainerInterface $container ): CompatAssets { |
109 | 109 | return new CompatAssets( |
110 | 110 | $container->get( 'compat.asset_getter' ), |
111 | 111 | $container->get( 'ppcp.asset-version' ), |
|
0 commit comments