We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5525860 commit d21caaaCopy full SHA for d21caaa
1 file changed
modules/ppcp-compat/services.php
@@ -100,6 +100,17 @@
100
return class_exists( 'WC_Bookings' );
101
},
102
103
+ 'compat.plugin-detector' => static function (): PluginDetector\PluginDetectorInterface {
104
+ return new PluginDetector\PluginDetector();
105
+ },
106
+
107
+ 'compat.product-customization-detector' => static function ( ContainerInterface $container ): PluginDetector\ProductCustomizationDetectorInterface {
108
+ return new PluginDetector\ProductCustomizationDetector(
109
+ $container->get( 'compat.plugin-detector' ),
110
+ $container->get( 'woocommerce.logger.woocommerce' )
111
+ );
112
113
114
'compat.asset_getter' => static function ( ContainerInterface $container ): AssetGetter {
115
$factory = $container->get( 'assets.asset_getter_factory' );
116
assert( $factory instanceof AssetGetterFactory );
0 commit comments