Symfony Vagrant and Vendor outside of shared

I'm setting up a dev env. with Symfony on Vagrant in PHPStorm. To speed it up I have moved the composer files outside of the shared directory -- helps a lot, but I can't get my autocomplete to work now.



(This is the spped up process http://by-examples.net/2014/12/09/symfony2-on-vagrant.html )

 

Is there anyway to have phpstorm see the vagrant vendor files?

0

Hi there,

You have to reference them (be it part of the actual project or as external library) in order for IDE to recognize them.

Seems like External Libraries should do the job here: "Settings/Preferences | Languages & Frameworks | PHP  --> Include paths" -- such paths will be added under External Libraries node in Project View panel.

Or maybe you can add them as Additional Content Root -- "Settings/Preferences | Directories" -- such folders will become part of the actual project (in terms of search/refactoring/etc) -- may not be desired option for such stuff.

 

1
Avatar
Permanently deleted user

It appears that both ways work perfectly! ty

0

请先登录再写评论。