-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Case-sensitivity and yml-keys. #179
Comments
can u give example lines of yaml and container file? |
Yaml-file: services: Snippet from appDevDebugProjectContainer.xml:
Notice the difference between "importSettings" and importsettings. If I change the casing in the yml-file, the "missing-parameter"-message goes away. |
Parameter names are indeed lowercased in Symfony to make them case sensitive (which is why the common naming convention for parameters is not camelCased btw) |
Lowercased to make them case sensitive? |
Parameter names are considered case insensitive in the DI component (service ids are case insensitive too). The PhpStorm plugin reads the parameters from the compiled container, so it has the lowercased names. |
A common approach. Lowercased to make then case insensitive on compare then! :) I believe completion is lowercased, but GoTo is not. Completion looks up the already lowercased values from the xml-serialized container. GoTo uses the value directly from PhpStorm. A fix should be simple to implement! :) |
Beautiful. Best plugin ever! |
Some of our yml-parameter keys are transformed to lowercase in appDevDebugProjectContainer.xml. The symfony2-plugin then reports parameters as missing, due to the difference in casing.
Excellent plugin by the way! :)
The text was updated successfully, but these errors were encountered: