Wednesday, 15 May 2013

dependency management - How does composer deal with shared dependencies by multiple packages within one project? -


According to the questions, if Project A is X, Y & amp; Z packages they, in return, are D1, D2, D3, D4 and O. D5 package is the composer D1, D2, D3, D4 & amp; D5 x, y and z packages for three times?

It looks logical but is not particularly practical if D1, D2, D3, D4 and AP The D4 package requires another set of shared dependencies .... It will have a lot of duplicate code inside a project code base.

Thanks in advance

short answer is not loading from PHP The time is impossible, because it does not make sense to download dependencies independently per package. Therefore, the composer will solve all the dependencies for all of your packages, and then install them once without duplication.

No comments:

Post a Comment