Skip to content

Commit 4b6c480

Browse files
committed
Adjust resource path for bundle file creation
Fixes: Haehnchen#1213
1 parent e8a5870 commit 4b6c480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/util/psi/PhpBundleFileFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static PsiElement createBundleFile(@NotNull PhpClass bundleClass, @NotNul
6969
throw new Exception("File already exists");
7070
}
7171

72-
String COMPILER_TEMPLATE = "/resources/fileTemplates/" + template + ".php";
72+
String COMPILER_TEMPLATE = "/fileTemplates/" + template + ".php";
7373
String fileTemplateContent = getFileTemplateContent(COMPILER_TEMPLATE);
7474
if(fileTemplateContent == null) {
7575
throw new Exception("Template content error");
@@ -154,7 +154,7 @@ public static PsiElement createCompilerPass(@NotNull PhpClass bundleClass, @NotN
154154
groupStatement.addRangeBefore(methodReference, semicolon, groupStatement.getLastChild());
155155
}
156156

157-
String COMPILER_TEMPLATE = "/resources/fileTemplates/compiler_pass.php";
157+
String COMPILER_TEMPLATE = "/fileTemplates/compiler_pass.php";
158158
String fileTemplateContent = getFileTemplateContent(COMPILER_TEMPLATE);
159159
if(fileTemplateContent == null) {
160160
throw new Exception("Template content error");

0 commit comments

Comments
 (0)