Lines Matching refs:installed
27 private static $installed = array (
187 foreach (self::getInstalled() as $installed) {
188 $packages[] = array_keys($installed['versions']);
208 foreach (self::getInstalled() as $installed) {
209 if (isset($installed['versions'][$packageName])) {
249 foreach (self::getInstalled() as $installed) {
250 if (!isset($installed['versions'][$packageName])) {
255 if (isset($installed['versions'][$packageName]['pretty_version'])) {
256 $ranges[] = $installed['versions'][$packageName]['pretty_version'];
258 if (array_key_exists('aliases', $installed['versions'][$packageName])) {
259 $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
261 if (array_key_exists('replaced', $installed['versions'][$packageName])) {
262 $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
264 if (array_key_exists('provided', $installed['versions'][$packageName])) {
265 $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
271 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
280 foreach (self::getInstalled() as $installed) {
281 if (!isset($installed['versions'][$packageName])) {
285 if (!isset($installed['versions'][$packageName]['version'])) {
289 return $installed['versions'][$packageName]['version'];
292 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
301 foreach (self::getInstalled() as $installed) {
302 if (!isset($installed['versions'][$packageName])) {
306 if (!isset($installed['versions'][$packageName]['pretty_version'])) {
310 return $installed['versions'][$packageName]['pretty_version'];
313 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
322 foreach (self::getInstalled() as $installed) {
323 if (!isset($installed['versions'][$packageName])) {
327 if (!isset($installed['versions'][$packageName]['reference'])) {
331 return $installed['versions'][$packageName]['reference'];
334 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
343 $installed = self::getInstalled();
345 return $installed[0]['root'];
359 return self::$installed;
393 self::$installed = $data;
407 $installed = array();
412 $installed[] = self::$installedByVendor[$vendorDir];
413 } elseif (is_file($vendorDir.'/composer/installed.php')) {
414 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
419 $installed[] = self::$installed;
421 return $installed;