<?php

// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound -- APD is the established namespace shared with the Pro add-on and retained for backward compatibility.
namespace APD\Domain\Config;

use APD\Runtime\RuntimeConfigBuilder;

defined('ABSPATH') || exit;

class ConfigAssembler
{
    public function assemble(array $config, array $context = []) : array
    {
        $normalized = (new ConfigNormalizer())->normalize($config);

        return (new RuntimeConfigBuilder())->build($normalized, $config, $context);
    }
}
