phpstorm symfony2 missing service warning

后端 未结 6 1363
醉酒成梦
醉酒成梦 2021-02-14 08:46

I have installed the Symfony2 plugin for Phpstorm but I can\'t get the IDE to see these existing services or other injected objects. Can these be fixed somehow, so the warnings

6条回答
  •  失恋的感觉
    2021-02-14 09:16

    Finally, thanks to the @googol help, I've figured out a way to specify services definitions files in custom paths with a YML format:

    You only have to create or modify the .idea/symfony2.xml file including the following tag: xml

    You'll have to restart the PhpStorm and that's it! :)

    Here you have my complete symfony2.xml file as an example:

    xml

    And here you have a feature request in order to include the possibility to add this custom path service definition through the plugin UI settings instead of having to edit the config file manually: https://github.com/Haehnchen/idea-php-symfony2-plugin/issues/573

提交回复
热议问题