use Symfony\Component\Mailer\Bridge\Mailgun\Webhook\MailgunRequestParser;
use Symfony\Component\Mailer\Bridge\Postmark\RemoteEvent\PostmarkPayloadConverter;
use Symfony\Component\Mailer\Bridge\Postmark\Webhook\PostmarkRequestParser;
use Symfony\Component\Mailer\Bridge\Sendgrid\RemoteEvent\SendgridPayloadConverter;
use Symfony\Component\Mailer\Bridge\Sendgrid\Webhook\SendgridRequestParser;
return static function DContainerConfigurator
$container) { $container->
services() ->
set('mailer.payload_converter.mailgun', MailgunPayloadConverter::
class) ->
set('mailer.webhook.request_parser.mailgun', MailgunRequestParser::
class) ->
args([service('mailer.payload_converter.mailgun'
)]) ->
alias(MailgunRequestParser::
class, 'mailer.webhook.request_parser.mailgun'
) ->
set('mailer.payload_converter.postmark', PostmarkPayloadConverter::
class) ->
set('mailer.webhook.request_parser.postmark', PostmarkRequestParser::
class) ->
args([service('mailer.payload_converter.postmark'
)]) ->
alias(PostmarkRequestParser::
class, 'mailer.webhook.request_parser.postmark'
) ->
set('mailer.payload_converter.sendgrid', SendgridPayloadConverter::
class) ->
set('mailer.webhook.request_parser.sendgrid', SendgridRequestParser::
class) ->
args([service('mailer.payload_converter.sendgrid'
)]) ->
alias(SendgridRequestParser::
class, 'mailer.webhook.request_parser.sendgrid'
) ;
};