Idea-php-symfony2-plugin: services.yaml >> factory-created service arguments are hinted as the class being factoried

Created on 24 Jan 2018  路  1Comment  路  Source: Haehnchen/idea-php-symfony2-plugin

Given a class that is instantiated via a factory, the arguments part of the service definition refers to the factory method, not the class being generated.

However, the symfony plugin thinks otherwise - it thinks the arguments are for the class being generated.

I've created a repo illustrating the issue:
https://github.com/luispabon/idea-symfony-plugin-woes

image

Most helpful comment

I have the same issue with the common case of creating a service for a Repository using

factory: ["@doctrine.orm.entity_manager", getRepository]

>All comments

I have the same issue with the common case of creating a service for a Repository using

factory: ["@doctrine.orm.entity_manager", getRepository]
Was this page helpful?
0 / 5 - 0 ratings