phpstorm symfony2缺少服务警告 [英] phpstorm symfony2 missing service warning

查看:108
本文介绍了phpstorm symfony2缺少服务警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为Phpstorm安装了Symfony2插件,但是我无法让IDE看到这些现有服务或其他注入的对象.可以以某种方式解决这些问题,使警告消失吗?

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 go away?

推荐答案

我遇到类似的问题,建议您仔细检查以下内容...

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

  1. 按照@Marcel的建议,检查您的Symfony2插件是否已打开...

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

1.1.设置> Symfony2插件

1.1. Settings > Symfony2 plugin

1.2.检查这些目录的路径是否正确,由于某种原因,我在一个项目中有两个symfony项目,因此默认路径不正确

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

  1. 您应该仔细检查插件对您的容器XML的引用是否正确,默认情况下它将为"app \ cache \ dev \ appDevDebugProjectContainer.xml",因为您看到我的数据库必须更新并且可以看到路径现在是"EXISTS",它在

  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.设置> Symfony2插件>容器

2.1. Settings > Symfony2 plugin > Container

2.2.

然后,按照@Igor的建议清除缓存

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

这篇关于phpstorm symfony2缺少服务警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆