Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

isPublic check in ConstraintValidatorsPass on decorators .inner argument #20150

Copy link
Copy link
Closed
@mariuszpass

Description

@mariuszpass
Issue body actions

Hi.
I have a decorator for doctrine.orm.validator.unique which is tagged with validator.constraint_validator. With symfony 3.1.5 new checks were introduced in here

My decorator:

    app.decorating.doctrine_unique:
        class:     CapiBundle\Model\Validator\Constraints\UniqueEntityDecorator
        decorates: doctrine.orm.validator.unique
        arguments: ['@app.decorating.doctrine_unique.inner', '@doctrine']
        public:    false

results with exception The service "app.decorating.doctrine_unique.inner" must be public as it can be lazy-loaded.
Additionaly, InvalidArgumentException is not imported.

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.