Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Serializer] YamlEncoder: throw if the Yaml component isn't installed#24565
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| publicfunction__construct(Dumper$dumper =null,Parser$parser =null,array$defaultContext =array()) | ||
| { | ||
| if (!class_exists(Dumper::class)) { | ||
| thrownewRuntimeException('Unable to use YamlEncoder as the Symfony Yaml component is not installed.'); |
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.
Maybe we should add the package name here too as suggested in#24563.
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.
done
fabpot commentedOct 16, 2017
Thank you@dunglas. |
…t installed (dunglas)This PR was squashed before being merged into the 3.3 branch (closes#24565).Discussion----------[Serializer] YamlEncoder: throw if the Yaml component isn't installed| Q | A| ------------- | ---| Branch? | 3.3 <!-- see comment below -->| Bug fix? | yes| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks? | no| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->| Tests pass? | no| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | n/aSimilar to#24563 but for the Yaml encoder (not the same branch).Commits-------7d21caf [Serializer] YamlEncoder: throw if the Yaml component isn't installed
Similar to#24563 but for the Yaml encoder (not the same branch).