protected function getMinifierInstance($name, array $args = [])
	{
		$className = 's9e\\TextFormatter\\Configurator\\JavaScript\\Minifiers\\' . $name;
		if (!class_exists($className))
		{
			throw new InvalidArgumentException('Invalid minifier ' . var_export($name, true));
		}

		$reflection = new ReflectionClass($className);
		$minifier   = (empty($args)) ? $reflection->newInstance() : $reflection->newInstanceArgs($args);

		return $minifier;
	}
protected function getMinifierInstance($name, array $args = [])
	{
		$className = 's9e\\TextFormatter\\Configurator\\JavaScript\\Minifiers\\' . $name;
		if (!class_exists($className))
		{
			throw new InvalidArgumentException('Invalid minifier ' . var_export($name, true));
		}

		$reflection = new ReflectionClass($className);
		$minifier   = (empty($args)) ? $reflection->newInstance() : $reflection->newInstanceArgs($args);

		return $minifier;
	}
protected function getMinifierInstance ( $ name , array $ args = [ ] ) { $ className = 's9e\\TextFormatter\\Configurator\\JavaScript\\Minifiers\\' . $ name ; if ( ! class_exists ( $ className ) ) { throw new InvalidArgumentException ( 'Invalid minifier ' . var_export ( $ name , true ) ) ; } $ reflection = new ReflectionClass ( $ className ) ; $ minifier = ( empty ( $ args ) ) ? $ reflection -> newInstance ( ) : $ reflection -> newInstanceArgs ( $ args ) ; return $ minifier ; }
Create and return a Minifier instance

@param  string   Minifier's name
@param  array    Constructor's arguments
@return Minifier
Create and return a Minifier instance