Lines Matching +full:installed -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)

19  * This class is copied in every Composer installed project and available to all
21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
39 private static $installed; variable in Composer\\InstalledVersions
58 …* Returns a list of all package names which are present, either by being installed, replaced or pr…
66 foreach (self::getInstalled() as $installed) {
67 $packages[] = array_keys($installed['versions']);
88 foreach (self::getInstalled() as $installed) {
89 foreach ($installed['versions'] as $name => $package) {
100 * Checks whether the given package is installed
110 foreach (self::getInstalled() as $installed) {
111 if (isset($installed['versions'][$packageName])) {
112 …return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) …
122 … * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
140 …* Returns a version constraint representing all the range(s) which are installed for a given packa…
143 * whether a given version of a package is installed, and not just whether it exists
150 foreach (self::getInstalled() as $installed) {
151 if (!isset($installed['versions'][$packageName])) {
156 if (isset($installed['versions'][$packageName]['pretty_version'])) {
157 $ranges[] = $installed['versions'][$packageName]['pretty_version'];
159 if (array_key_exists('aliases', $installed['versions'][$packageName])) {
160 $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
162 if (array_key_exists('replaced', $installed['versions'][$packageName])) {
163 $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
165 if (array_key_exists('provided', $installed['versions'][$packageName])) {
166 $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
172 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
177 …* @return string|null If the package is being replaced or provided but is not really installed, nu…
181 foreach (self::getInstalled() as $installed) {
182 if (!isset($installed['versions'][$packageName])) {
186 if (!isset($installed['versions'][$packageName]['version'])) {
190 return $installed['versions'][$packageName]['version'];
193 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
198 …* @return string|null If the package is being replaced or provided but is not really installed, nu…
202 foreach (self::getInstalled() as $installed) {
203 if (!isset($installed['versions'][$packageName])) {
207 if (!isset($installed['versions'][$packageName]['pretty_version'])) {
211 return $installed['versions'][$packageName]['pretty_version'];
214 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
219 …* @return string|null If the package is being replaced or provided but is not really installed, nu…
223 foreach (self::getInstalled() as $installed) {
224 if (!isset($installed['versions'][$packageName])) {
228 if (!isset($installed['versions'][$packageName]['reference'])) {
232 return $installed['versions'][$packageName]['reference'];
235 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
240 …* @return string|null If the package is being replaced or provided but is not really installed, nu…
244 foreach (self::getInstalled() as $installed) {
245 if (!isset($installed['versions'][$packageName])) {
249 …return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packa…
252 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
261 $installed = self::getInstalled();
263 return $installed[0]['root'];
267 * Returns the raw installed.php data for custom implementations
277 if (null === self::$installed) {
278 // only require the installed.php file if this file is loaded from its dumped location,
281 self::$installed = include __DIR__ . '/installed.php';
283 self::$installed = array();
287 return self::$installed;
291 … * Returns the raw data of all installed.php which are currently loaded for custom implementations
306 * and wants to ensure both projects have access to their version of installed.php.
310 * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
314 * @param array[] $data A vendor/composer/installed.php data set
321 self::$installed = $data;
324 … // when using reload, we disable the duplicate protection to ensure that self::$installed data is
325 … // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
327 // all installed packages for example
353 $installed = array();
361 $installed[] = self::$installedByVendor[$vendorDir];
362 } elseif (is_file($vendorDir.'/composer/installed.php')) {
364 $required = require $vendorDir.'/composer/installed.php';
366 $installed[] = $required;
367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
368 self::$installed = $required;
378 if (null === self::$installed) {
379 // only require the installed.php file if this file is loaded from its dumped location,
383 $required = require __DIR__ . '/installed.php';
384 self::$installed = $required;
386 self::$installed = array();
390 if (self::$installed !== array() && !$copiedLocalDir) {
391 $installed[] = self::$installed;
394 return $installed;