public function renderSVGFile($fileName, array $options = []) {
		if (!file_exists($fileName)) {
			return '';
		}

		$options = $options + $this->defaultOptions;

		if (!isset($options['identifier'])) {
			$options['identifier'] = preg_replace('/\W+/u', '-', strtolower(pathinfo($fileName, PATHINFO_FILENAME)));
		}

		if (!isset($this->usedSvgs[$options['identifier']])) {
			$content = trim(file_get_contents($fileName));
			$symbol = $this->processSVG($content, $options);
		} else {
			$symbol = $this->usedSvgs[$options['identifier']];
		}

		return $this->renderSymbol($symbol, $options);
	}
public function renderSVGFile($fileName, array $options = []) {
		if (!file_exists($fileName)) {
			return '';
		}

		$options = $options + $this->defaultOptions;

		if (!isset($options['identifier'])) {
			$options['identifier'] = preg_replace('/\W+/u', '-', strtolower(pathinfo($fileName, PATHINFO_FILENAME)));
		}

		if (!isset($this->usedSvgs[$options['identifier']])) {
			$content = trim(file_get_contents($fileName));
			$symbol = $this->processSVG($content, $options);
		} else {
			$symbol = $this->usedSvgs[$options['identifier']];
		}

		return $this->renderSymbol($symbol, $options);
	}
public function renderSVGFile ( $ fileName , array $ options = [ ] ) { if ( ! file_exists ( $ fileName ) ) { return '' ; } $ options = $ options + $ this -> defaultOptions ; if ( ! isset ( $ options [ 'identifier' ] ) ) { $ options [ 'identifier' ] = preg_replace ( '/\W+/u' , '-' , strtolower ( pathinfo ( $ fileName , PATHINFO_FILENAME ) ) ) ; } if ( ! isset ( $ this -> usedSvgs [ $ options [ 'identifier' ] ] ) ) { $ content = trim ( file_get_contents ( $ fileName ) ) ; $ symbol = $ this -> processSVG ( $ content , $ options ) ; } else { $ symbol = $ this -> usedSvgs [ $ options [ 'identifier' ] ] ; } return $ this -> renderSymbol ( $ symbol , $ options ) ; }
render a single SVG file. If the file has the same identifier as another SVG, it will not be loaded from
disk again

@param string $fileName path to file
@param array $options are identifier, width, height, class, excludeFromConcatenation, ignoreDuplicateIds, removeComments
render a single SVG file . If the file has the same identifier as another SVG it will not be loaded from disk again