Gets a Collector by name.
string $name A collector name:
DataCollectorInterface A DataCollectorInterface instance
\InvalidArgumentException if the collector does not exist
public function get($name) {
if (!isset($this->collectors[$name])) {
throw new \InvalidArgumentException(sprintf('Collector "%s" does not exist.', $name));
}
return $this->collectors[$name];
}