Skip to content

Make each handler type have its own configuration and enable custom handler types #558

@GromNaN

Description

@GromNaN

For the moment, the handler configuration options are all mixed together. This means that it is necessary to validate the options in the extension, even though this is the role of the config tree.

With the introduction of static configuration validation by array shape (and JSON schema?), it would be beneficial for each handler type to have its own configuration. This is already the case for mailer, redis, mongodb, and elasticsearch. We could generalize this with one class per handler, having two methods: one that create the nested config tree and the other that create the handler service definition.

With this approach, we can enable bundles/application to register additional handler types with their own config logic.

This requires a massive deprecation of the existing configuration, we might have some permanent mapping logic to pre-process the configuration.

Inspiration: thephpleague/flysystem-bundle#186

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions