getInstallPath()
of (possibly root) package
#11927
-
Currently, This is "expected" as the underlying code simply appends the package name to the vendor directory: https://github.com/composer/composer/blob/2.7.2/src/Composer/Installer/LibraryInstaller.php#L240 Is this desired? If yes, please advise how to get root package path from a method in a class extending My current (not working code) is:
Also, what is the definition of If no, how to figure out what package does provide the If yes, is it safe to omit the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The root package is considered to be in findPackage only matches on the name. If you want to include replace/provide you need to use an InstalledRepository and use findPackagesWithReplacersAndProviders |
Beta Was this translation helpful? Give feedback.
The root package is considered to be in
getcwd()
.findPackage only matches on the name. If you want to include replace/provide you need to use an InstalledRepository and use findPackagesWithReplacersAndProviders