Skip to content

Update YamlParser.php #304

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

Closed
wants to merge 6 commits into from
Closed

Update YamlParser.php #304

wants to merge 6 commits into from

Conversation

AlexGural
Copy link

More comfortable to use constant in some configs. Especially in enum type

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Documented? no
License MIT

Add possibility to use native constant expression for .yml

More comfortable to use constant in some configs. Especially in enum type
@renatomefi
Copy link
Contributor

@AlexGural thanks for you contribution!
Would you mind adding tests for it?
Maybe the documentation could also have this as example

Thank you again

@AlexGural
Copy link
Author

AlexGural commented Mar 23, 2018

@renatomefi sure no problem. I`m going to do this soon

@Kocal
Copy link
Contributor

Kocal commented May 2, 2018

Corresponding issue: #303.

@renatomefi
Copy link
Contributor

@AlexGural ping, are you still willing to do this? Thanks again!

@AlexGural
Copy link
Author

@renatomefi I added a small test. I was confused a little bit because I didn`t find tests for YamlParser and symfony parser has a good coverage.

@mcg-web mcg-web removed the wip label Jun 8, 2018
@Kocal
Copy link
Contributor

Kocal commented Aug 26, 2018

Any updates on this?👀

@mcg-web
Copy link
Contributor

mcg-web commented Oct 19, 2018

Closing this because of inactivity, feel free to continue discussion if this is still needed

@mcg-web mcg-web closed this Oct 19, 2018
murtukov pushed a commit to murtukov/graphql-bundle that referenced this pull request Aug 10, 2020
- Add the `Yaml::PARSE_CONSTANT` flag to the YamlParser to allow `!php/const` tags
- Add test for parsing yaml files with constants
- Adjust documentation for enums

Fix issue overblog#303. Based on pull request overblog#304
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants