/**
* Lists all currently active and registered type converters
*
* All active converters are listed with ordered by priority and grouped by
* source type first and target type second.
*
* @return void
*/
public function listCommand()
{
foreach ($this->propertyMapper->getTypeConverters() as $sourceType => $targetTypePriorityAndInstance) {
$this->outputLine();
$this->outputLine('<b>Source type "%s":</b>', [$sourceType]);
foreach ($targetTypePriorityAndInstance as $targetType => $priorityAndInstance) {
$this->outputFormatted('<b>Target type "%s":</b>', [$targetType], 4);
krsort($priorityAndInstance);
foreach ($priorityAndInstance as $priority => $instance) {
$this->outputFormatted('%3s: %s', [$priority, get_class($instance)], 8);
}
$this->outputLine();
}
$this->outputLine();
}
}