<?php

declare(strict_types=1);

namespace Akeneo\Platform\Installer\Infrastructure\Symfony\DependencyInjection;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;

/**
 * @copyright 2023 Akeneo SAS (https://www.akeneo.com)
 * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 */
class AkeneoInstallerExtension extends Extension
{
    public function load(array $configs, ContainerBuilder $container): void
    {
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('cli_command.yml');
        $loader->load('controllers.yml');
        $loader->load('fixture_loader.yml');
        $loader->load('handlers.yml');
        $loader->load('job_constraints.yml');
        $loader->load('job_defaults.yml');
        $loader->load('jobs.yml');
        $loader->load('queries.yml');
        $loader->load('services.yml');
        $loader->load('jobs.yml');
        $loader->load('steps.yml');
        $loader->load('subscribers.yml');

    }
}
