2

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 easy and fast programming.

Now, I'm quite sure that I'm just missing a setting somewhere, but I just can't find it.

3 Answers 3

6

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

Sign up to request clarification or add additional context in comments.

Comments

2

This is not an issue anymore, there is a Symfony plugin that works most of the time now.

Comments

1

Looks like a known issue in PhpStorm.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.