else { $title = 'Symfony Container Services';
} if ($showTag) { $title .=
sprintf(' Tagged with "%s" Tag',
$options['tag'
]);
} $options['output'
]->
title($title);
$serviceIds =
isset($options['tag'
]) &&
$options['tag'
] ?
$this->
sortTaggedServicesByPriority($container->
findTaggedServiceIds($options['tag'
])) :
$this->
sortServiceIds($container->
getServiceIds());
$maxTags =
[];
if (isset($options['filter'
])) { $serviceIds =
array_filter($serviceIds,
$options['filter'
]);
} foreach ($serviceIds as $key =>
$serviceId) { $definition =
$this->
resolveServiceDefinition($container,
$serviceId);
// filter out hidden services unless shown explicitly