Skip to content

Commit d21caaa

Browse files
committed
Add services for new classes
1 parent 5525860 commit d21caaa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

modules/ppcp-compat/services.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@
100100
return class_exists( 'WC_Bookings' );
101101
},
102102

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+
103114
'compat.asset_getter' => static function ( ContainerInterface $container ): AssetGetter {
104115
$factory = $container->get( 'assets.asset_getter_factory' );
105116
assert( $factory instanceof AssetGetterFactory );

0 commit comments

Comments
 (0)