public static function formatter(IConfigurator $config) { $class = ucfirst($config->logger_formatter()) . 'Formatter'; return new $class(); }