lib/MwbExporter/Bootstrap.php
public function getFormatter($name)
    {
        $formatters = $this->getFormatters();
        if (!array_key_exists($name, $formatters)) {
            list($module, $exporter) = explode('-', $name, 2);
            $class = sprintf('\\MwbExporter\\Formatter\\%s\\%s\\Formatter', ucfirst(strtolower($module)), ucfirst(strtolower($exporter)));
            if (!class_exists($class)) {
                throw new \InvalidArgumentException(sprintf('Unknown formatter "%s".', $name));
            }
        } else {
            $class = $formatters[$name];
        }

        return new $class($name);
    }
public function getFormatter($name)
    {
        $formatters = $this->getFormatters();
        if (!array_key_exists($name, $formatters)) {
            list($module, $exporter) = explode('-', $name, 2);
            $class = sprintf('\\MwbExporter\\Formatter\\%s\\%s\\Formatter', ucfirst(strtolower($module)), ucfirst(strtolower($exporter)));
            if (!class_exists($class)) {
                throw new \InvalidArgumentException(sprintf('Unknown formatter "%s".', $name));
            }
        } else {
            $class = $formatters[$name];
        }

        return new $class($name);
    }
public function getFormatter ( $ name ) { $ formatters = $ this -> getFormatters ( ) ; if ( ! array_key_exists ( $ name , $ formatters ) ) { list ( $ module , $ exporter ) = explode ( '-' , $ name , 2 ) ; $ class = sprintf ( '\\MwbExporter\\Formatter\\%s\\%s\\Formatter' , ucfirst ( strtolower ( $ module ) ) , ucfirst ( strtolower ( $ exporter ) ) ) ; if ( ! class_exists ( $ class ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unknown formatter "%s".' , $ name ) ) ; } } else { $ class = $ formatters [ $ name ] ; } return new $ class ( $ name ) ; }
Get formatter.

@param string $name  The formatter name
@return \MwbExporter\Formatter\FormatterInterface
Get formatter .