Add a list of converters to the available output converters.

@param array $converters A list of objects or object names (strings) implementing `OutputConverterInterface`.
@return self
490508
public function addConverters(array $converters) {
        foreach ($converters as $converter) {
            if (is_string($converter)) {
                $converter = new $converter();
            }

            if (!$converter instanceof OutputConverterInterface) {
                $name = is_object($converter) ? get_class($converter) : (string) $converter;
                throw new InvalidArgumentException('Given converter (' . $name . ') does not implement OutputConverterInterface', 500);
            }

            $this->registerConverter($converter);
        }

        return $this;
    }
268089
public function setChanges($changes)
    {
        if ($changes instanceof RecordFields) {
            $this->changes = $changes;
        } elseif (is_array($changes)) {
            $recordFields = new RecordFields();
            foreach ($changes as $change) {
                $recordFields->add($change);
            }
            $this->changes = $recordFields;
        }
        return $this;
    }
1157374
public function addLoaders(array $loaders) {
        foreach ($loaders as $loader) {
            if (is_string($loader)) {
                $loader = new $loader();
            }

            if (!$loader instanceof InputLoaderInterface) {
                $name = is_object($loader) ? get_class($loader) : (string) $loader;
                throw new InvalidArgumentException('Given loader (' . $name . ') does not implement LoaderInterface', 500);
            }

            $this->registerLoader($loader);
        }

        return $this;
    }
936392
public function addTransforms(array $transforms)
    {
        foreach ($transforms as $transform => $value) {
            $this->addTransform($transform, $value);
        }

        return $this;
    }
603051
public function setDispatchers(array $dispatchers)
    {
        foreach ($dispatchers as $name => $dispatcher) {
            $this->addDispatcher($name, $dispatcher);
        }

        return $this;
    }
425939
def converters
      @converters ||= site.converters.select { |c| c.matches(document.extname) }.sort
    end
213494
protected function addConvertor(AbstractConvertor $convertor)
	{
		foreach ($convertor->getRegexpGroups() as $name => $group)
		{
			$this->matchGroup[$name] = $group;
			$this->groups[$group][]  = '(?&' . $name . ')';
		}

		foreach ($convertor->getRegexps() as $name => $regexp)
		{
			$regexp = $this->insertCaptureNames($name, $regexp);
			$regexp = str_replace(' ', '\\s*', $regexp);
			$regexp = '(?<' . $name . '>' . $regexp . ')';

			$this->callbacks[$name] = [$convertor, 'convert' . $name];
			$this->regexps[$name]   = $regexp;
		}
	}
679761
public void addUsedConverter(IConverter converter, Object sourceObject,
			TypeReference<?> destinationType) {
		UsedConverter usedConverter = new UsedConverter(converter,
				sourceObject == null ? null : sourceObject.getClass(),
				destinationType);
		if (!usedConvertersSet.contains(usedConverter)) {
			usedConvertersSet.add(usedConverter);
			usedConvertersList.add(usedConverter);
		}
	}
158700
public static <E> void registerTypeConverter(Class<E> cls, TypeConverter<E> converter) {
        TYPE_CONVERTERS.put(cls, converter);
    }
662623
public function addConverter(ConverterInterface $converter)
    {
        $priority = $converter->getPriority();

        if (false === (is_int($priority) && $priority >= 0 && $priority <= 10)) {
            throw new \InvalidArgumentException(sprintf('Invalid priority at the converter: "%s".', get_class($converter)));
        }

        $this->queue->insert($converter, $priority);
    }
42006
public Anima addConverter(Converter<?>... converters) {
        ifThrow(null == converters || converters.length == 0,
                new AnimaException("converters not be null."));

        for (Converter<?> converter : converters) {
            Class<?> type = AnimaUtils.getConverterType(converter);
            sql2o.getQuirks().addConverter(type, converter);
        }
        return this;
    }
970361
public function registerConverter($name, ConverterInterface $converter, array $types, $strict = null)
    {
        $this->addConverter($name, $converter, $strict);

        foreach ($types as $type) {
            $this->addTypeToConverter($name, $type);
        }

        return $this;
    }
152681
protected function configureFormatters(array $formatters = array())
    {
        foreach ($formatters as $formatterId => $formatterOptions) {
            $formatterLoader = new FormatterLoader($formatterOptions);
            $this->formatters[$formatterId] = $formatterLoader->load();
        }
    }
458676
public function addFilters(array $filters)
    {
        foreach ($filters as $filter) {
            if ($filter instanceof QueryDSL) {
                $this->addFilter($filter);
            }
        }
        return $this;
    }
182547
public function addButtons(array $buttons): self
    {
        foreach ($buttons as $button) {
            if ($button instanceof ElementButton) {
                $this->buttons[] = $button->toArray();
            }
        }

        return $this;
    }
219482
public function withStyles(array $styles)
    {
        foreach ($styles as $name => $args) {
            $this->formatter()->setStyle($name, new OutputFormatterStyle(...$args));
        }

        return $this;
    }
1255380
public function registerConverter(string $name, ConverterInterface $converter): void
    {
        $this->converters[$name] = $converter;
    }