phpstorm symfony2 missing service warning

后端 未结 6 1367
醉酒成梦
醉酒成梦 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:08

    I had a similar problem and would recommend double checking the following...

    1. As @Marcel suggested, check your Symfony2 plugin is turned on...

      1.1. Settings > Symfony2 plugin

      1.2. Check the paths to the these directories are correct, for some reason I had two symfony projects within a project so the default paths were not accurate

    Symfony2 plugin

    1. You should double check that the plugin's reference to your container XML is accurate, by default it will be "app\cache\dev\appDevDebugProjectContainer.xml" as you can see mine had to be updated and you can see the path is now "EXISTS", it said "ERROR" before

      2.1. Settings > Symfony2 plugin > Container

      2.2. enter image description here

    2. Then, as per @Igor's suggestion clear your cache

提交回复
热议问题