public function registerContainerConfiguration(LoaderInterface $loader): void
    {
        $configDir = $this->getProjectDir().'/app/config';

        if (file_exists($configDir.'/parameters.yml')) {
            $loader->load($configDir.'/parameters.yml');
        }

        $config = $this->getManagerConfig()->all();
        $plugins = $this->getPluginLoader()->getInstancesOf(PluginLoader::CONFIG_PLUGINS);

        /** @var ConfigPluginInterface[] $plugins */
        foreach ($plugins as $plugin) {
            $plugin->registerContainerConfiguration($loader, $config);
        }

        // Reload the parameters.yml file
        if (file_exists($configDir.'/parameters.yml')) {
            $loader->load($configDir.'/parameters.yml');
        }

        if (file_exists($configDir.'/config_'.$this->getEnvironment().'.yml')) {
            $loader->load($configDir.'/config_'.$this->getEnvironment().'.yml');
        } elseif (file_exists($configDir.'/config.yml')) {
            $loader->load($configDir.'/config.yml');
        }
    }
public function registerContainerConfiguration(LoaderInterface $loader): void
    {
        $configDir = $this->getProjectDir().'/app/config';

        if (file_exists($configDir.'/parameters.yml')) {
            $loader->load($configDir.'/parameters.yml');
        }

        $config = $this->getManagerConfig()->all();
        $plugins = $this->getPluginLoader()->getInstancesOf(PluginLoader::CONFIG_PLUGINS);

        /** @var ConfigPluginInterface[] $plugins */
        foreach ($plugins as $plugin) {
            $plugin->registerContainerConfiguration($loader, $config);
        }

        // Reload the parameters.yml file
        if (file_exists($configDir.'/parameters.yml')) {
            $loader->load($configDir.'/parameters.yml');
        }

        if (file_exists($configDir.'/config_'.$this->getEnvironment().'.yml')) {
            $loader->load($configDir.'/config_'.$this->getEnvironment().'.yml');
        } elseif (file_exists($configDir.'/config.yml')) {
            $loader->load($configDir.'/config.yml');
        }
    }
{@inheritdoc}