-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support new snake_case templates #1389
Conversation
Somehow, the Stacktracelog4j:WARN No appenders could be found for logger (#com.intellij.application.impl.ApplicationImpl). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 10:45:42,895 DEBUG .intellij.openapi.command.impl - executeCommand: com.intellij.openapi.command.WriteCommandAction$$Lambda$1047/0x000000080194b840@e87082a, name = Undefined, groupId = null, in command = false, in transparent action = false failed that PsiElement (PsiElement(STRING_TEXT)) navigate to file /views/layout.html.twig |
With this change, we basically stop supporting the old < 4.0 syntax. I think it's not worth to add a configuration option to support both. Since the new format is the way forward, I think it's acceptable. |
@@ -159,17 +161,17 @@ | |||
shortcutName = String.format( | |||
"%s::%s%s", | |||
symfonyBundle.getName(), | |||
templateFolderName, | |||
templateName | |||
underscore(templateFolderName), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change, we basically stop supporting the old < 4.0 syntax
Yes its just what i was think of, but i still see lot of projects having older versions. i think they can be easily supported as the method already supports multiple template names. I guess just adding the old naming to the end of the array will avoid this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's clever! Gonna try that out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it, tested it and it works. Tests are also green. Not sure if I need to add more test cases to also guard the old ones? How to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice, but not needed for merging ;)
This was introduced in SensioFrameworkExtraBundle 4.0. https://github.com/sensiolabs/SensioFrameworkExtraBundle/blob/master/CHANGELOG.md#40
This was introduced in SensioFrameworkExtraBundle 4.0.
https://github.com/sensiolabs/SensioFrameworkExtraBundle/blob/master/CHANGELOG.md#40
Fixes #1082 #1296 #1138
This is my first try to do something in Java, so I don't expect this PR to be pixel perfect yet. Please tell me how to improve, and I will :)