lib/Formatter/FormatRegistry.php
public function get($name)
    {
        if (!isset($this->formats[$name])) {
            throw new \InvalidArgumentException(sprintf(
                'Unknown format "%s", known formats: "%s"',
                $name, implode(', ', array_keys($this->formats))
            ));
        }

        return $this->formats[$name];
    }
public function get($name)
    {
        if (!isset($this->formats[$name])) {
            throw new \InvalidArgumentException(sprintf(
                'Unknown format "%s", known formats: "%s"',
                $name, implode(', ', array_keys($this->formats))
            ));
        }

        return $this->formats[$name];
    }
public function get ( $ name ) { if ( ! isset ( $ this -> formats [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unknown format "%s", known formats: "%s"' , $ name , implode ( ', ' , array_keys ( $ this -> formats ) ) ) ) ; } return $ this -> formats [ $ name ] ; }
Return the named format class.

@param string $name

@throws \InvalidArgumentException When no formatter exists.

@return FormatInterface
Return the named format class .