You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug symfony#52978 [Webhook] [Framework] Added missing XML attribute in config XSD (TimoBakx)
This PR was merged into the 6.3 branch.
Discussion
----------
[Webhook] [Framework] Added missing XML attribute in config XSD
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
The XML schema definition was missing the type attribute for the webhook routing.
This attribute is necessary to identify the correct parser and remote event consumers.
In YAML and PHP, it exists and works:
```yaml
framework:
webhook:
routing:
mailer: # <-- this identifier
service: #...
secret: #...
```
```php
use App\Webhook\MailerWebhookParser;
use Symfony\Config\FrameworkConfig;
return static function (FrameworkConfig $frameworkConfig): void {
$webhookConfig = $frameworkConfig->webhook();
$webhookConfig
->routing('mailer') // <-- this parameter
->service('mailer.webhook.request_parser.mailgun')
->secret('%env(MAILER_MAILGUN_SECRET)%')
;
};
```
#SymfonyHackday
Commits
-------
43b0877 [Webhook] Added missing XML attribute in config XSD
0 commit comments