Skip to content

Commit 4262477

Browse files
authored
Merge pull request #1420 from Haehnchen/feature/twig-config-yaml
support also "yaml" for config files to extract the globals
2 parents 6b2de47 + 7d11535 commit 4262477

File tree

1 file changed

+5
-1
lines changed
  • src/main/java/fr/adrienbrault/idea/symfony2plugin/config/utils

1 file changed

+5
-1
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/config/utils/ConfigUtil.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,16 @@ public TreeVisitor(@NotNull PhpClass phpClass, @NotNull PsiElement psiElement, @
161161

162162
/**
163163
* app/config[..].yml
164+
* app/config[..].yaml
164165
* config/packages/twig.yml
166+
* config/packages/twig.yaml
165167
*/
166168
public static Collection<VirtualFile> getConfigurations(@NotNull Project project, @NotNull String packageName) {
167169
Collection<String[]> paths = Arrays.asList(
168170
new String[] {"config", "packages", packageName +".yml"},
169-
new String[] {"config", "packages", packageName, "config.yaml"}
171+
new String[] {"config", "packages", packageName +".yaml"},
172+
new String[] {"config", "packages", packageName, "config.yaml"},
173+
new String[] {"config", "packages", packageName, "config.yml"}
170174
);
171175

172176
Collection<VirtualFile> virtualFiles = new HashSet<>();

0 commit comments

Comments
 (0)