if ($paths) { $shortnames =
[];
$dirs =
[];
foreach (current($paths) as $path) { $dirs[] =
$this->
isAbsolutePath($path) ?
$path :
$this->projectDir.'/'.
$path;
} foreach (Finder::
create()->
files()->
followLinks()->
in($dirs) as $file) { $shortnames[] =
str_replace('\\', '/',
$file->
getRelativePathname());
} [$namespace,
$shortname] =
$this->
parseTemplateName($name);
$alternatives =
$this->
findAlternatives($shortname,
$shortnames);
if (FilesystemLoader::MAIN_NAMESPACE !==
$namespace) { $alternatives =
array_map(fn ($shortname) => '@'.
$namespace.'/'.
$shortname,
$alternatives);
} } $this->
error($io,
sprintf('Template name "%s" not found',
$name),
$alternatives);
} $io->
section('Configured Paths'
);
if ($paths) {