Skip to content

update 3.2->3.3 bc break: decoration of validator.validator_factory service is not working #24222

@Strate

Description

@Strate
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no
Symfony version 3.3.9

I do have a decorator service over validator.validator_factory, as described in documentation. It is not working for now, because:

  1. \Symfony\Component\DependencyInjection\Compiler\DecoratorServicePass is removing original service, renaming it to my_service_name.inner and set alias from my_service_name to validator.validator_factory.

  2. After that \Symfony\Component\Validator\DependencyInjection\AddConstraintValidatorsPass is invoked, and tries to locate original service validator.validator_factory which can not be found anymore.

As a result, validator factory built with wrong dependencies.

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