Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,16 @@ public TreeVisitor(@NotNull PhpClass phpClass, @NotNull PsiElement psiElement, @

/**
* app/config[..].yml
* app/config[..].yaml
* config/packages/twig.yml
* config/packages/twig.yaml
*/
public static Collection<VirtualFile> getConfigurations(@NotNull Project project, @NotNull String packageName) {
Collection<String[]> paths = Arrays.asList(
new String[] {"config", "packages", packageName +".yml"},
new String[] {"config", "packages", packageName, "config.yaml"}
new String[] {"config", "packages", packageName +".yaml"},
new String[] {"config", "packages", packageName, "config.yaml"},
new String[] {"config", "packages", packageName, "config.yml"}
);

Collection<VirtualFile> virtualFiles = new HashSet<>();
Expand Down