Understanding symfony2 deps

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!

+5
source share
3 answers

install and update both extracts of new code from the git repositories specified in the deps file

set hash checks in deps.lock files for each library. If he finds something, he checks the commit corresponding to the hash. If it is not, it checks the tag or branch in the deps.lock file, if one is specified, and creates an entry in the deps.lock file

Update

, Symfony ( deps). - , , , .

, , , .

+4

install --reinstall install, .

vendors update , deps, deps.lock. , , " ".

, :

if (is_dir($vendorDir.'/symfony') && !is_dir($vendorDir.'/symfony/.git') && !in_array('--reinstall', $argv))
...Try to run ./bin/vendors install --reinstall...

, /symfony .git.

+4

, , "install-reinstall"

I personally made ​​php bin / install-reinstallsuppliers in the deployment project

0
source

All Articles