InstalledVersions::getInstallPath( string $packageName )
Contents
Parameters Parameters
- $packageName
-
(string) (Required)
Return Return
(string|null) If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
Source Source
File: libraries/lifterlms-cli/vendor/composer/InstalledVersions.php
public static function getInstallPath($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); }
Expand full source code Collapse full source code View on GitHub