|
16 | 16 | use Symfony\Component\DependencyInjection\Alias; |
17 | 17 | use Symfony\Component\DependencyInjection\Argument\ClosureProxyArgument; |
18 | 18 | use Symfony\Component\DependencyInjection\Argument\IteratorArgument; |
| 19 | +use Symfony\Component\DependencyInjection\Argument\ServiceLocatorArgument; |
19 | 20 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
20 | 21 | use Symfony\Component\DependencyInjection\Definition; |
21 | 22 | use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; |
@@ -328,12 +329,14 @@ protected function describeContainerDefinition(Definition $definition, array $op |
328 | 329 | } elseif ($argument instanceof Definition) { |
329 | 330 | $argumentsInformation[] = 'Inlined Service'; |
330 | 331 | } elseif ($argument instanceof IteratorArgument) { |
331 | | - $argumentsInformation[] = 'Iterator'; |
| 332 | + $argumentsInformation[] = sprintf('Iterator (%d element(s))', count($argument->getValues())); |
| 333 | + } elseif ($argument instanceof ServiceLocatorArgument) { |
| 334 | + $argumentsInformation[] = sprintf('ServiceLocator (%d service(s))', count($argument->getValues())); |
332 | 335 | } elseif ($argument instanceof ClosureProxyArgument) { |
333 | 336 | list($reference, $method) = $argument->getValues(); |
334 | 337 | $argumentsInformation[] = sprintf('ClosureProxy(Service(%s)::%s())', $reference, $method); |
335 | 338 | } else { |
336 | | - $argumentsInformation[] = is_array($argument) ? 'Array' : $argument; |
| 339 | + $argumentsInformation[] = is_array($argument) ? sprintf('Array (%d element(s))', count($argument)) : $argument; |
337 | 340 | } |
338 | 341 | } |
339 | 342 |
|
|
0 commit comments