<?php
namespace Composer;
use Composer\Semver\VersionParser;
class InstalledVersions
{
private static $installed = array (
'root' =>
array (
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => NULL,
'name' => 'visavi/rotor',
),
'versions' =>
array (
'alchemy/binary-driver' =>
array (
'pretty_version' => 'v5.2.0',
'version' => '5.2.0.0',
'aliases' =>
array (
),
'reference' => 'e0615cdff315e6b4b05ada67906df6262a020d22',
),
'cakephp/core' =>
array (
'pretty_version' => '4.2.4',
'version' => '4.2.4.0',
'aliases' =>
array (
),
'reference' => '54d11c1356cea54623a3ec55530259d3c47153e0',
),
'cakephp/database' =>
array (
'pretty_version' => '4.2.4',
'version' => '4.2.4.0',
'aliases' =>
array (
),
'reference' => '548196c180e1085982410bf50ee43c1f2e968efc',
),
'cakephp/datasource' =>
array (
'pretty_version' => '4.2.4',
'version' => '4.2.4.0',
'aliases' =>
array (
),
'reference' => '46b069760f901d43bda94decd3c39ed8a9903175',
),
'cakephp/utility' =>
array (
'pretty_version' => '4.2.4',
'version' => '4.2.4.0',
'aliases' =>
array (
),
'reference' => '37d737eef64f3f09af871b70730a99912248d157',
),
'cbschuld/browser.php' =>
array (
'pretty_version' => 'v1.9.6',
'version' => '1.9.6.0',
'aliases' =>
array (
),
'reference' => '9d07d6410977d494d7b8ecc2f3c877645c5477d9',
),
'composer/package-versions-deprecated' =>
array (
'pretty_version' => '1.11.99.1',
'version' => '1.11.99.1',
'aliases' =>
array (
),
'reference' => '7413f0b55a051e89485c5cb9f765fe24bb02a7b6',
),
'doctrine/cache' =>
array (
'pretty_version' => '1.10.2',
'version' => '1.10.2.0',
'aliases' =>
array (
),
'reference' => '13e3381b25847283a91948d04640543941309727',
),
'doctrine/dbal' =>
array (
'pretty_version' => '3.0.0',
'version' => '3.0.0.0',
'aliases' =>
array (
),
'reference' => 'ee6d1260d5cc20ec506455a585945d7bdb98662c',
),
'doctrine/event-manager' =>
array (
'pretty_version' => '1.1.1',
'version' => '1.1.1.0',
'aliases' =>
array (
),
'reference' => '41370af6a30faa9dc0368c4a6814d596e81aba7f',
),
'doctrine/inflector' =>
array (
'pretty_version' => '2.0.3',
'version' => '2.0.3.0',
'aliases' =>
array (
),
'reference' => '9cf661f4eb38f7c881cac67c75ea9b00bf97b210',
),
'doctrine/lexer' =>
array (
'pretty_version' => '1.2.1',
'version' => '1.2.1.0',
'aliases' =>
array (
),
'reference' => 'e864bbf5904cb8f5bb334f99209b48018522f042',
),
'dragonmantank/cron-expression' =>
array (
'pretty_version' => 'v2.3.1',
'version' => '2.3.1.0',
'aliases' =>
array (
),
'reference' => '65b2d8ee1f10915efb3b55597da3404f096acba2',
),
'egulias/email-validator' =>
array (
'pretty_version' => '2.1.25',
'version' => '2.1.25.0',
'aliases' =>
array (
),
'reference' => '0dbf5d78455d4d6a41d186da50adc1122ec066f4',
),
'evenement/evenement' =>
array (
'pretty_version' => 'v3.0.1',
'version' => '3.0.1.0',
'aliases' =>
array (
),
'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7',
),
'google/recaptcha' =>
array (
'pretty_version' => '1.2.4',
'version' => '1.2.4.0',
'aliases' =>
array (
),
'reference' => '614f25a9038be4f3f2da7cbfd778dc5b357d2419',
),
'gregwar/captcha' =>
array (
'pretty_version' => 'v1.1.9',
'version' => '1.1.9.0',
'aliases' =>
array (
),
'reference' => '4bb668e6b40e3205a020ca5ee4ca8cff8b8780c5',
),
'guzzlehttp/guzzle' =>
array (
'pretty_version' => '7.2.0',
'version' => '7.2.0.0',
'aliases' =>
array (
),
'reference' => '0aa74dfb41ae110835923ef10a9d803a22d50e79',
),
'guzzlehttp/promises' =>
array (
'pretty_version' => '1.4.0',
'version' => '1.4.0.0',
'aliases' =>
array (
),
'reference' => '60d379c243457e073cff02bc323a2a86cb355631',
),
'guzzlehttp/psr7' =>
array (
'pretty_version' => '1.7.0',
'version' => '1.7.0.0',
'aliases' =>
array (
),
'reference' => '53330f47520498c0ae1f61f7e2c90f55690c06a3',
),
'illuminate/bus' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '18b3d810cfe52a4fa040994e68da4f356a498e8a',
),
'illuminate/cache' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '1bee3250741ae14d76f5275d510eb5631e2c13b3',
),
'illuminate/collections' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => 'ecc881c6dce66e22f2c236374f342d41c7ebeb67',
),
'illuminate/container' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '3d6ce613f455093fdf8bd3c81b30104aef0b11e0',
),
'illuminate/contracts' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '9c7a9868d7485a82663d67109429094c8e4ed56d',
),
'illuminate/database' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '87dd6cee1eb159dfcba95bd1d2ed59d3f3244b36',
),
'illuminate/events' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => 'b371a0ddd2cb396a275a60ee85cea062e8a7d30f',
),
'illuminate/filesystem' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '3195bbfe4c3d908b003f8fe9adc7cb42c024e4d9',
),
'illuminate/http' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '8dabbf02e26cc3a29b6c01ca9c3e2369925d58b6',
),
'illuminate/log' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => 'e2f6fe6476b8f09236956582c3f18a330c8b1c17',
),
'illuminate/macroable' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '300aa13c086f25116b5f3cde3ca54ff5c822fb05',
),
'illuminate/pagination' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => 'b14dc1ca164158a86be93714433fb5dfa888217b',
),
'illuminate/pipeline' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => 'd406237ea39f6c655569551a8bfb2d00ace6e43d',
),
'illuminate/redis' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '98871d4e432069d961dcb52b2d32ef705a19f626',
),
'illuminate/session' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '452a6fe623bfaea90b2a462d834eeb0019ec66d5',
),
'illuminate/support' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '978e64ffb68189b70fea77e4d401f43e88fa54ca',
),
'illuminate/translation' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '0f8394c964ebbd5e85e2c471f1263c6180cc410a',
),
'illuminate/view' =>
array (
'pretty_version' => 'v8.31.0',
'version' => '8.31.0.0',
'aliases' =>
array (
),
'reference' => '696a1d6d2213be192429e97245a3d2bb4d6d1849',
),
'intervention/image' =>
array (
'pretty_version' => '2.5.1',
'version' => '2.5.1.0',
'aliases' =>
array (
),
'reference' => 'abbf18d5ab8367f96b3205ca3c89fb2fa598c69e',
),
'josegonzalez/dotenv' =>
array (
'pretty_version' => '3.2.0',
'version' => '3.2.0.0',
'aliases' =>
array (
),
'reference' => 'f19174d9d7213a6c20e8e5e268aa7dd042d821ca',
),
'm1/env' =>
array (
'pretty_version' => '2.2.0',
'version' => '2.2.0.0',
'aliases' =>
array (
),
'reference' => '5c296e3e13450a207e12b343f3af1d7ab569f6f3',
),
'monolog/monolog' =>
array (
'pretty_version' => '2.2.0',
'version' => '2.2.0.0',
'aliases' =>
array (
),
'reference' => '1cb1cde8e8dd0f70cc0fe51354a59acad9302084',
),
'nelexa/zip' =>
array (
'pretty_version' => '3.3.3',
'version' => '3.3.3.0',
'aliases' =>
array (
),
'reference' => '501b52f6fc393a599b44ff348a42740e1eaac7c6',
),
'nesbot/carbon' =>
array (
'pretty_version' => '2.45.1',
'version' => '2.45.1.0',
'aliases' =>
array (
),
'reference' => '528783b188bdb853eb21239b1722831e0f000a8d',
),
'neutron/temporary-filesystem' =>
array (
'pretty_version' => '3.0',
'version' => '3.0.0.0',
'aliases' =>
array (
),
'reference' => '60e79adfd16f42f4b888e351ad49f9dcb959e3c2',
),
'nikic/fast-route' =>
array (
'pretty_version' => 'v1.3.0',
'version' => '1.3.0.0',
'aliases' =>
array (
),
'reference' => '181d480e08d9476e61381e04a71b34dc0432e812',
),
'ocramius/package-versions' =>
array (
'replaced' =>
array (
0 => '1.11.99',
),
),
'opis/closure' =>
array (
'pretty_version' => '3.6.1',
'version' => '3.6.1.0',
'aliases' =>
array (
),
'reference' => '943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5',
),
'paragonie/random_compat' =>
array (
'pretty_version' => 'v9.99.100',
'version' => '9.99.100.0',
'aliases' =>
array (
),
'reference' => '996434e5492cb4c3edcb9168db6fbb1359ef965a',
),
'php-di/invoker' =>
array (
'pretty_version' => '2.3.0',
'version' => '2.3.0.0',
'aliases' =>
array (
),
'reference' => '992fec6c56f2d1ad1ad5fee28267867c85bfb8f9',
),
'php-di/php-di' =>
array (
'pretty_version' => '6.3.0',
'version' => '6.3.0.0',
'aliases' =>
array (
),
'reference' => '955cacea6b0beaba07e8c11b8367f5b3d5abe89f',
),
'php-di/phpdoc-reader' =>
array (
'pretty_version' => '2.2.1',
'version' => '2.2.1.0',
'aliases' =>
array (
),
'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c',
),
'php-ffmpeg/php-ffmpeg' =>
array (
'pretty_version' => 'v0.17.0',
'version' => '0.17.0.0',
'aliases' =>
array (
),
'reference' => 'a5147d1ae041e78e7870bf2443d4e2dfa7635856',
),
'psr/container' =>
array (
'pretty_version' => '1.1.0',
'version' => '1.1.0.0',
'aliases' =>
array (
),
'reference' => '9fc7aab7a78057a124384358ebae8a1711b6f6fc',
),
'psr/container-implementation' =>
array (
'provided' =>
array (
0 => '1.0',
1 => '^1.0',
),
),
'psr/event-dispatcher' =>
array (
'pretty_version' => '1.0.0',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0',
),
'psr/event-dispatcher-implementation' =>
array (
'provided' =>
array (
0 => '1.0',
),
),
'psr/http-client' =>
array (
'pretty_version' => '1.0.1',
'version' => '1.0.1.0',
'aliases' =>
array (
),
'reference' => '2dfb5f6c5eff0e91e20e913f8c5452ed95b86621',
),
'psr/http-client-implementation' =>
array (
'provided' =>
array (
0 => '1.0',
),
),
'psr/http-message' =>
array (
'pretty_version' => '1.0.1',
'version' => '1.0.1.0',
'aliases' =>
array (
),
'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363',
),
'psr/http-message-implementation' =>
array (
'provided' =>
array (
0 => '1.0',
),
),
'psr/log' =>
array (
'pretty_version' => '1.1.3',
'version' => '1.1.3.0',
'aliases' =>
array (
),
'reference' => '0f73288fd15629204f9d42b7055f72dacbe811fc',
),
'psr/log-implementation' =>
array (
'provided' =>
array (
0 => '1.0.0',
1 => '1.0',
),
),
'psr/simple-cache' =>
array (
'pretty_version' => '1.0.1',
'version' => '1.0.1.0',
'aliases' =>
array (
),
'reference' => '408d5eafb83c57f6365a3ca330ff23aa4a5fa39b',
),
'ralouphie/getallheaders' =>
array (
'pretty_version' => '3.0.3',
'version' => '3.0.3.0',
'aliases' =>
array (
),
'reference' => '120b605dfeb996808c31b6477290a714d356e822',
),
'robmorgan/phinx' =>
array (
'pretty_version' => '0.12.5',
'version' => '0.12.5.0',
'aliases' =>
array (
),
'reference' => '9457e3879b0abc02a4022941a6a535141889432e',
),
'swiftmailer/swiftmailer' =>
array (
'pretty_version' => 'v6.2.6',
'version' => '6.2.6.0',
'aliases' =>
array (
),
'reference' => 'd2791ff0b73247cdc2096b14f5580aba40c12bff',
),
'symfony/config' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => '212d54675bf203ff8aef7d8cee8eecfb72f4a263',
),
'symfony/console' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => 'd6d0cc30d8c0fda4e7b213c20509b0159a8f4556',
),
'symfony/deprecation-contracts' =>
array (
'pretty_version' => 'v2.2.0',
'version' => '2.2.0.0',
'aliases' =>
array (
),
'reference' => '5fa56b4074d1ae755beb55617ddafe6f5d78f665',
),
'symfony/error-handler' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => 'b547d3babcab5c31e01de59ee33e9d9c1421d7d0',
),
'symfony/event-dispatcher' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => 'd08d6ec121a425897951900ab692b612a61d6240',
),
'symfony/event-dispatcher-contracts' =>
array (
'pretty_version' => 'v2.2.0',
'version' => '2.2.0.0',
'aliases' =>
array (
),
'reference' => '0ba7d54483095a198fa51781bc608d17e84dffa2',
),
'symfony/event-dispatcher-implementation' =>
array (
'provided' =>
array (
0 => '2.0',
),
),
'symfony/filesystem' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => '710d364200997a5afde34d9fe57bd52f3cc1e108',
),
'symfony/finder' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => '0d639a0943822626290d169965804f79400e6a04',
),
'symfony/http-client-contracts' =>
array (
'pretty_version' => 'v2.3.1',
'version' => '2.3.1.0',
'aliases' =>
array (
),
'reference' => '41db680a15018f9c1d4b23516059633ce280ca33',
),
'symfony/http-foundation' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => '54499baea7f7418bce7b5ec92770fd0799e8e9bf',
),
'symfony/http-kernel' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => 'c452dbe4f385f030c3957821bf921b13815d6140',
),
'symfony/mime' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => '5155d2fe14ef1eb150e3bdbbc1ec1455df95e9cd',
),
'symfony/polyfill-ctype' =>
array (
'pretty_version' => 'v1.22.1',
'version' => '1.22.1.0',
'aliases' =>
array (
),
'reference' => 'c6c942b1ac76c82448322025e084cadc56048b4e',
),
'symfony/polyfill-iconv' =>
array (
'pretty_version' => 'v1.22.1',
'version' => '1.22.1.0',
'aliases' =>
array (
),
'reference' => '06fb361659649bcfd6a208a0f1fcaf4e827ad342',
),
'symfony/polyfill-intl-grapheme' =>
array (
'pretty_version' => 'v1.22.1',
'version' => '1.22.1.0',
'aliases' =>
array (
),
'reference' => '5601e09b69f26c1828b13b6bb87cb07cddba3170',
),
'symfony/polyfill-intl-idn' =>
array (
'pretty_version' => 'v1.22.1',
'version' => '1.22.1.0',
'aliases' =>
array (
),
'reference' => '2d63434d922daf7da8dd863e7907e67ee3031483',
),
'symfony/polyfill-intl-normalizer' =>
array (
'pretty_version' => 'v1.22.1',
'version' => '1.22.1.0',
'aliases' =>
array (
),
'reference' => '43a0283138253ed1d48d352ab6d0bdb3f809f248',
),
'symfony/polyfill-mbstring' =>
array (
'pretty_version' => 'v1.22.1',
'version' => '1.22.1.0',
'aliases' =>
array (
),
'reference' => '5232de97ee3b75b0360528dae24e73db49566ab1',
),
'symfony/polyfill-php72' =>
array (
'pretty_version' => 'v1.22.1',
'version' => '1.22.1.0',
'aliases' =>
array (
),
'reference' => 'cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9',
),
'symfony/polyfill-php73' =>
array (
'pretty_version' => 'v1.22.1',
'version' => '1.22.1.0',
'aliases' =>
array (
),
'reference' => 'a678b42e92f86eca04b7fa4c0f6f19d097fb69e2',
),
'symfony/polyfill-php80' =>
array (
'pretty_version' => 'v1.22.1',
'version' => '1.22.1.0',
'aliases' =>
array (
),
'reference' => 'dc3063ba22c2a1fd2f45ed856374d79114998f91',
),
'symfony/process' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => '313a38f09c77fbcdc1d223e57d368cea76a2fd2f',
),
'symfony/service-contracts' =>
array (
'pretty_version' => 'v2.2.0',
'version' => '2.2.0.0',
'aliases' =>
array (
),
'reference' => 'd15da7ba4957ffb8f1747218be9e1a121fd298a1',
),
'symfony/string' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => '4e78d7d47061fa183639927ec40d607973699609',
),
'symfony/translation' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => '74b0353ab34ff4cca827a2cf909e325d96815e60',
),
'symfony/translation-contracts' =>
array (
'pretty_version' => 'v2.3.0',
'version' => '2.3.0.0',
'aliases' =>
array (
),
'reference' => 'e2eaa60b558f26a4b0354e1bbb25636efaaad105',
),
'symfony/translation-implementation' =>
array (
'provided' =>
array (
0 => '2.3',
),
),
'symfony/var-dumper' =>
array (
'pretty_version' => 'v5.2.4',
'version' => '5.2.4.0',
'aliases' =>
array (
),
'reference' => '6a81fec0628c468cf6d5c87a4d003725e040e223',
),
'visavi/cleanup' =>
array (
'pretty_version' => 'v1.5.2',
'version' => '1.5.2.0',
'aliases' =>
array (
),
'reference' => 'fc13c6376fabe61522d4a3cfeab90e8555c1fbd2',
),
'visavi/crontask' =>
array (
'pretty_version' => 'v1.2.0',
'version' => '1.2.0.0',
'aliases' =>
array (
),
'reference' => '372403f32ea5efdc447fe6ecbd6d015eb3ac2f5f',
),
'visavi/rotor' =>
array (
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => NULL,
),
'voku/portable-ascii' =>
array (
'pretty_version' => '1.5.6',
'version' => '1.5.6.0',
'aliases' =>
array (
),
'reference' => '80953678b19901e5165c56752d087fc11526017c',
),
),
);
public static function getInstalledPackages()
{
return array_keys(self::$installed['versions']);
}
public static function isInstalled($packageName)
{
return isset(self::$installed['versions'][$packageName]);
}
public static function satisfies(VersionParser $parser, $packageName, $constraint)
{
$constraint = $parser->parseConstraints($constraint);
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
return $provided->matches($constraint);
}
public static function getVersionRanges($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}
$ranges = array();
if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {
$ranges[] = self::$installed['versions'][$packageName]['pretty_version'];
}
if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);
}
if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);
}
if (array_key_exists('provided', self::$installed['versions'][$packageName])) {
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);
}
return implode(' || ', $ranges);
}
public static function getVersion($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}
if (!isset(self::$installed['versions'][$packageName]['version'])) {
return null;
}
return self::$installed['versions'][$packageName]['version'];
}
public static function getPrettyVersion($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}
if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {
return null;
}
return self::$installed['versions'][$packageName]['pretty_version'];
}
public static function getReference($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}
if (!isset(self::$installed['versions'][$packageName]['reference'])) {
return null;
}
return self::$installed['versions'][$packageName]['reference'];
}
public static function getRootPackage()
{
return self::$installed['root'];
}
public static function getRawData()
{
return self::$installed;
}
public static function reload($data)
{
self::$installed = $data;
}
}