I have been working with symfony2 for some time, and I really am not getting the right way to work with providers.
So here is what I am doing:
I have deps and deps.lock files in my git, while I ignore the whole providers folder. Now, when I install the application on a new server, I do php bin/vendors installto pull the providers to the server. I get a message that I should use install --reinstalland do this.
In my opinion, the versions should now be the same as on my development machine, since both deps and deps.lock are the same. But does deps.lock seem to get (partially) ignored?
There is also a command vendors updatethat I'm reading should not be used. BUt I did not understand what he was actually doing.
So, I got a little confused about which command should be used, when, and what it should do. Maybe someone can shed light on this topic! I am particularly interested in the correct way to use the vendor team on both the local and the server so that the vendors are in the correct version on both systems!
source
share