-
Notifications
You must be signed in to change notification settings - Fork 98
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
Handle constants from .dist #106
Comments
This bug was declared in 2016.. We're in 2018 and the issue is still there. |
I don't think this can be fixed easily. The YAML parser will replace the constant with its actual value at runtime, so the dumper will only be able to dump this value but not the constant. |
Actually no, it should an easy fix . |
@rrajkomar was correct, it was an easy fix, it just needed an argument to tell it to do so edit: but this ticket is so old that @fullmoonissue will not be able to use |
Thank you @rrajkomar and @EntranceJew for taking care of this forgotten issue. In fact, @EntranceJew your PR was what I wanted to submit (the addition of But as @xabbuh mentioned, it resolves the value at runtime and the constant name is not preserved (which will fix my initial issue by the way). Two years have passed, the DotEnv Component was released and mcrypt was deprecated (even removed in php 7.2) so my issue is become obsolete (for my specific concern). I let @xabbuh and @stof decide about these issue. Good bye everyone and wishing to all of you the best. Kind regards, |
Hello, i encounter the same problem , is there a future fix for that ? |
+1 for this one and proposed PR |
@xabbuh I understand your concern about replacing the constant with its actual value instead of keeping the constant... but I think it would still be a lot better than replacing it with |
I have a use case where the mcrypt cipher and mode are stored into the .dist file.
After the build of the parameters.yml file, these two keys are set to null.
I can submit a PR to correct that case but I just wanted to know your opinion about this issue.
Regards,
The text was updated successfully, but these errors were encountered: