4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection\Compiler;
14 use Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument;
17 * Resolves all TaggedIteratorArgument arguments.
19 * @author Roland Franssen <franssen.roland@gmail.com>
21 class ResolveTaggedIteratorArgumentPass extends AbstractRecursivePass
23 use PriorityTaggedServiceTrait;
28 protected function processValue($value, $isRoot = false)
30 if (!$value instanceof TaggedIteratorArgument) {
31 return parent::processValue($value, $isRoot);
34 $value->setValues($this->findAndSortTaggedServices($value->getTag(), $this->container));