-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Webhook] decouple the Webhook component from the Serializer component #57881
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
Conversation
xabbuh
commented
Jul 30, 2024
Q | A |
---|---|
Branch? | 7.2 |
Bug fix? | no |
New feature? | yes |
Deprecations? | no |
Issues | Fix #57567 |
License | MIT |
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.
Out of curiosity, why use encoder
instead of serializer
?
@fabpot I didn't want to confuse readers of the code by using the term serializer for two different things (the Serializer component and the part that I named encoder here). But I am open for other names. |
Serialization and encoding are two different concepts. Having |
@fabpot I renamed the new classes |
Thank you @xabbuh. |
@@ -548,7 +548,7 @@ public function load(array $configs, ContainerBuilder $container): void | |||
$this->registerProfilerConfiguration($config['profiler'], $container, $loader); | |||
|
|||
if ($this->readConfigEnabled('webhook', $container, $config['webhook'])) { | |||
$this->registerWebhookConfiguration($config['webhook'], $container, $loader); | |||
$this->registerWebhookConfiguration($config['webhook'], $container, $loader, $this->readConfigEnabled('serializer', $container, $config['serializer'])); | |||
|
|||
// If Webhook is installed but the HttpClient or Serializer components are not available, we should throw an error |
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.
outdated comment
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.
This PR was merged into the 7.2 branch. Discussion ---------- [FrameworkBundle][Webhook] Fix comment | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #57881 (comment) | License | MIT Follows * #57881 Commits ------- b3bd0c6 [FrameworkBundle] Fix comment