<?php

namespace AutoAdmin\Bundle\Seo\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

abstract class AbstractCompilerPassTagManager implements CompilerPassInterface, CompilerPassTagManagerInterface
{
    public function process(ContainerBuilder $container): void
    {
        $def = $container->getDefinition($this->getManagerClass());
        $def->setArgument(0, new TaggedIteratorArgument($this->getTag()));
    }
}
