} /**
* @param bool $isAbsolutePath is used for remote app loading in cloud environments,
* therefore it's always false for local apps
*
* @return GenericSnippetFile[]
*/
public function loadSnippetFilesFromApp(string
$author, string
$appPath, bool
$isAbsolutePath = false
): array
{ $snippetDir =
$this->
getSnippetDir($appPath,
$isAbsolutePath);
if (!
is_dir($snippetDir)) { return [];
} $finder =
$this->
getSnippetFinder($snippetDir);
$snippetFiles =
[];
foreach ($finder->
getIterator() as $fileInfo) { $nameParts =
explode('.',
$fileInfo->
getFilenameWithoutExtension());