<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Loads compat layer: interfaces and WooCommerce adapter implementations.
 * Does not construct adapters; that happens in Rest::ensure_router().
 */
function fotogenic_ai_load_compat(): void {
	require_once FOTOGENIC_AI_PATH . 'includes/core/interface-product-query-adapter.php';
	require_once FOTOGENIC_AI_PATH . 'includes/core/interface-product-image-source-adapter.php';
	require_once FOTOGENIC_AI_PATH . 'includes/core/interface-product-media-write-adapter.php';
	require_once FOTOGENIC_AI_PATH . 'includes/compat/woocommerce/class-product-query-adapter-woocommerce.php';
	require_once FOTOGENIC_AI_PATH . 'includes/compat/woocommerce/class-product-image-source-adapter-woocommerce.php';
	require_once FOTOGENIC_AI_PATH . 'includes/compat/woocommerce/class-product-media-write-adapter-woocommerce.php';
	require_once FOTOGENIC_AI_PATH . 'includes/compat/woocommerce/class-woocommerce-studio-cache-invalidation.php';
require_once FOTOGENIC_AI_PATH . 'includes/compat/woocommerce/class-woocommerce-bulk-cache-invalidation.php';

	require_once FOTOGENIC_AI_PATH . 'includes/compat/media/class-media-query-adapter-wp.php';

	require_once FOTOGENIC_AI_PATH . 'includes/compat/wp/class-post-query-adapter-wp.php';
	require_once FOTOGENIC_AI_PATH . 'includes/compat/wp/class-page-query-adapter-wp.php';
}
