Bower include a resolution section to solve the conflicts between 2 same dependencies but with different versions.
As for NPM, it is possible to install several versions of the same dependency by different dependencies, which is not the case for Bower and Composer. Only the installation of a single version compatible for all dependencies (flatten) is possible.
The dependency resolution would force (replace) a version or range version directly in the root Composer package.
Currently Composer throws an exception indicating that only one version of dependency (bower-asset/jquery) can be installed. With the config.fxp-asset.resolutions option, all range versions of bower-asset/jquery dependency are replaced by the value in the resolutions config (^2.2.4).
Bower include a resolution section to solve the conflicts between 2 same dependencies but with different versions.
As for NPM, it is possible to install several versions of the same dependency by different dependencies, which is not the case for Bower and Composer. Only the installation of a single version compatible for all dependencies (flatten) is possible.
The dependency resolution would force (replace) a version or range version directly in the root Composer package.
Example:
Currently Composer throws an exception indicating that only one version of dependency (
bower-asset/jquery
) can be installed. With theconfig.fxp-asset.resolutions
option, all range versions ofbower-asset/jquery
dependency are replaced by the value in theresolutions
config (^2.2.4
).