listContents($folder);; $groups = []; foreach ($contents as $object) { if ($object['type'] == 'file' && Str::endsWith($object['basename'], '.yaml')) { $groups[] = Group::createFromSpec(Yaml::parseFile($object['path'])); } } return $groups; } }