-
Notifications
You must be signed in to change notification settings - Fork 15
add support for Parameter references #29
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
base: master
Are you sure you want to change the base?
Conversation
Thanks! I'll try to look into this soon. |
It seems that the To add a test which covers your modification to |
@matthiasnoback The class is present in Symfony 2.3 too: https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/DependencyInjection/Parameter.php |
@xabbuh Interesting! Didn't know that. |
This seems like something that would be useful to tackle. There was one open question from myself ("What about '%app.class%%some_other_parameter'?"). If any of you has time to look into this, please let me know if this is safe to merge. I think it is, but that's intuition ;) |
@matthiasnoback For nested parameters you may want to take a look into the logic triggered by the |
It seems this is required for making this usable with Symfony 3.4.
at least for |
Parameter actually exists since 2.0.0 |
FYI: I got the update to Symfony 3.4 working with this: https://github.com/zikula/symfony-service-definition-validator/compare/65868c8b0326e09c1f437c9ee1e53a9eb0237e6c...bdafa1be7c80bd8a69d860c7f9d586e61d1fb69e |
Hi,
There was missing support for use of the
Parameter
class, i.e creating services like this:I couldn't see a way to put the fixing logic in one place. Possibley a refactor would make it cleaner.
Also I've not been able to really write a test for the array parameter fix, as your
ArgumentValidatorTest
only tests failure cases, unless you want a non failure test for this particular edge case.Also, there is no check that the container actually has the parameter requested, so that's another edge case.
Let me know how what you think!
Thanks