function findMacroFile($tagName) { $tagName = normalizeTagName($tagName); $filename = $tagName . $this->matisseSettings->macrosExt(); foreach ($this->matisseSettings->getMacrosDirectories() as $dir) { $path = "{$dir}/{$filename}"; if (file_exists($path)) { return $path; } } throw new FileIOException($filename); }
public function onParsingComplete() { $this->props->name = normalizeTagName($this->props->name); }