PHPStorm Namespace support not working for Symfony2 projects
I'm evaluating PHPStorm right now, and I've really grown fond of it. It's fast, has more or less everything perfectly implemented and the flow flows like a breeze...
The only thing bugging me (and that's a big one) is, that it doesn't seem to get the namespaces for my symfony2 project right.
See, in Netbeans, when I type use Symf[CTRL+SPACE]
it show me all the Symfony namespaces, right out of the /vendors
folder.
If I do the same in PHPStorm, no namesapces are shown. That means that the whole code copletion doesn't work for the vendor libraries, which is really very, very bad in terms of ea开发者_开发问答sy and fast programming.
Now, I'm quite sure that I'm just missing a setting somewhere, but I just can't find it.
The Question is a bit old, but if anyone stumbles across it (like me) and still nothing works, it might be because your vendor folder gets excluded from code inspection.
You have to go to "File -> Settings -> Directories" and set the vendor folder to be a resource root and not be excluded.
More info here: Jetbrains Namespaces
This is not an issue anymore, there is a Symfony plugin that works most of the time now.
Looks like a known issue in PhpStorm.
精彩评论