Skip to content

[FrameworkBundle][Webhook] Services are missing when requiring Webhook component #50211

Closed
@Jean-Beru

Description

@Jean-Beru

Symfony version(s) affected

6.3.0-BETA1

Description

When requiring symfony/webhook from a new Symfony project, 2 services depends on non-installed dependencies:

The service "webhook.transport" has a dependency on a non-existent service "http_client". 
The service "webhook.body_configurator.json" has a dependency on a non-existent service "serializer".

How to reproduce

Create a projet from symfony/skeleton

composer require symfony/webhook

Possible Solution

Should we throw an exception like throw new LogicException('The webhook component cannot be enabled as these components are not installed. Try running "composer require symfony/http-client symfony/serializer".'); ?

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions