-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
ServiceClosureArgument is not recognized by lint:container #39259
Copy link
Copy link
Closed
Description
Symfony version(s) affected: 5.2, 5.1, probably earlier versions too
Description
When service is injected via ServiceClosureArgument like in DoctrineMigrationsExtension, lint:container throws an error:
[ERROR] Invalid definition for service "doctrine.migrations.dependency_factory": argument 2 of "Doctrine\Migrations\DependencyFactory::setDefinition" accepts "callable", "App\CustomSchemaProvider" passed.
How to reproduce
https://github.com/vudaltsov/symfony-lint-container-reproducer
UPDATE
Since doctrine/doctrine-migrations-bundle v3.1.0 container lint fails without any custom service configuration.
Reactions are currently unavailable