<?php
namespace app\common\service\tchef;

// Explicit optional-integration configuration fixture, only in this B worker.
// This does not represent the real database value or test the enabled sync chain.
if (!defined('FOOD_TCHEF_PROCESS_ISOLATION') || FOOD_TCHEF_PROCESS_ISOLATION !== true
    || getenv('FOOD_LANE') !== 'B'
    || __DIR__ !== '/tmp/cdx-store-food-fixed-20261011') {
    throw new \RuntimeException('Exact process-only Tchef isolation scope');
}
if (!class_exists(Config::class, false)) {
    final class Config
    {
        public static function load(): array
        {
            $GLOBALS['FOOD_TCHEF_CONFIG_ISOLATION_CALLS'][] = [
                'mode' => 'explicit-process-disabled',
                'real_DB_config_enabled' => true,
                'synchronization_chain_tested' => false,
            ];
            return [];
        }
    }
} else {
    throw new \RuntimeException('Refuse replacing an already loaded Config class');
}
