View file vendor/composer/package-versions-deprecated/src/PackageVersions/Versions.php

File size: 9.45Kb
<?php

declare(strict_types=1);

namespace PackageVersions;

use Composer\InstalledVersions;
use OutOfBoundsException;

class_exists(InstalledVersions::class);

/**
 * This class is generated by composer/package-versions-deprecated, specifically by
 * @see \PackageVersions\Installer
 *
 * This file is overwritten at every run of `composer install` or `composer update`.
 *
 * @deprecated in favor of the Composer\InstalledVersions class provided by Composer 2. Require composer-runtime-api:^2 to ensure it is present.
 */
final class Versions
{
    /**
     * @deprecated please use {@see self::rootPackageName()} instead.
     *             This constant will be removed in version 2.0.0.
     */
    const ROOT_PACKAGE_NAME = 'visavi/rotor';

    /**
     * Array of all available composer packages.
     * Dont read this array from your calling code, but use the \PackageVersions\Versions::getVersion() method instead.
     *
     * @var array<string, string>
     * @internal
     */
    const VERSIONS          = array (
  'alchemy/binary-driver' => 'v5.2.0@e0615cdff315e6b4b05ada67906df6262a020d22',
  'cakephp/core' => '4.2.4@54d11c1356cea54623a3ec55530259d3c47153e0',
  'cakephp/database' => '4.2.4@548196c180e1085982410bf50ee43c1f2e968efc',
  'cakephp/datasource' => '4.2.4@46b069760f901d43bda94decd3c39ed8a9903175',
  'cakephp/utility' => '4.2.4@37d737eef64f3f09af871b70730a99912248d157',
  'cbschuld/browser.php' => 'v1.9.6@9d07d6410977d494d7b8ecc2f3c877645c5477d9',
  'composer/package-versions-deprecated' => '1.11.99.1@7413f0b55a051e89485c5cb9f765fe24bb02a7b6',
  'doctrine/cache' => '1.10.2@13e3381b25847283a91948d04640543941309727',
  'doctrine/dbal' => '3.0.0@ee6d1260d5cc20ec506455a585945d7bdb98662c',
  'doctrine/event-manager' => '1.1.1@41370af6a30faa9dc0368c4a6814d596e81aba7f',
  'doctrine/inflector' => '2.0.3@9cf661f4eb38f7c881cac67c75ea9b00bf97b210',
  'doctrine/lexer' => '1.2.1@e864bbf5904cb8f5bb334f99209b48018522f042',
  'dragonmantank/cron-expression' => 'v2.3.1@65b2d8ee1f10915efb3b55597da3404f096acba2',
  'egulias/email-validator' => '2.1.25@0dbf5d78455d4d6a41d186da50adc1122ec066f4',
  'evenement/evenement' => 'v3.0.1@531bfb9d15f8aa57454f5f0285b18bec903b8fb7',
  'google/recaptcha' => '1.2.4@614f25a9038be4f3f2da7cbfd778dc5b357d2419',
  'gregwar/captcha' => 'v1.1.9@4bb668e6b40e3205a020ca5ee4ca8cff8b8780c5',
  'guzzlehttp/guzzle' => '7.2.0@0aa74dfb41ae110835923ef10a9d803a22d50e79',
  'guzzlehttp/promises' => '1.4.0@60d379c243457e073cff02bc323a2a86cb355631',
  'guzzlehttp/psr7' => '1.7.0@53330f47520498c0ae1f61f7e2c90f55690c06a3',
  'illuminate/bus' => 'v8.31.0@18b3d810cfe52a4fa040994e68da4f356a498e8a',
  'illuminate/cache' => 'v8.31.0@1bee3250741ae14d76f5275d510eb5631e2c13b3',
  'illuminate/collections' => 'v8.31.0@ecc881c6dce66e22f2c236374f342d41c7ebeb67',
  'illuminate/container' => 'v8.31.0@3d6ce613f455093fdf8bd3c81b30104aef0b11e0',
  'illuminate/contracts' => 'v8.31.0@9c7a9868d7485a82663d67109429094c8e4ed56d',
  'illuminate/database' => 'v8.31.0@87dd6cee1eb159dfcba95bd1d2ed59d3f3244b36',
  'illuminate/events' => 'v8.31.0@b371a0ddd2cb396a275a60ee85cea062e8a7d30f',
  'illuminate/filesystem' => 'v8.31.0@3195bbfe4c3d908b003f8fe9adc7cb42c024e4d9',
  'illuminate/http' => 'v8.31.0@8dabbf02e26cc3a29b6c01ca9c3e2369925d58b6',
  'illuminate/log' => 'v8.31.0@e2f6fe6476b8f09236956582c3f18a330c8b1c17',
  'illuminate/macroable' => 'v8.31.0@300aa13c086f25116b5f3cde3ca54ff5c822fb05',
  'illuminate/pagination' => 'v8.31.0@b14dc1ca164158a86be93714433fb5dfa888217b',
  'illuminate/pipeline' => 'v8.31.0@d406237ea39f6c655569551a8bfb2d00ace6e43d',
  'illuminate/redis' => 'v8.31.0@98871d4e432069d961dcb52b2d32ef705a19f626',
  'illuminate/session' => 'v8.31.0@452a6fe623bfaea90b2a462d834eeb0019ec66d5',
  'illuminate/support' => 'v8.31.0@978e64ffb68189b70fea77e4d401f43e88fa54ca',
  'illuminate/translation' => 'v8.31.0@0f8394c964ebbd5e85e2c471f1263c6180cc410a',
  'illuminate/view' => 'v8.31.0@696a1d6d2213be192429e97245a3d2bb4d6d1849',
  'intervention/image' => '2.5.1@abbf18d5ab8367f96b3205ca3c89fb2fa598c69e',
  'josegonzalez/dotenv' => '3.2.0@f19174d9d7213a6c20e8e5e268aa7dd042d821ca',
  'm1/env' => '2.2.0@5c296e3e13450a207e12b343f3af1d7ab569f6f3',
  'monolog/monolog' => '2.2.0@1cb1cde8e8dd0f70cc0fe51354a59acad9302084',
  'nelexa/zip' => '3.3.3@501b52f6fc393a599b44ff348a42740e1eaac7c6',
  'nesbot/carbon' => '2.45.1@528783b188bdb853eb21239b1722831e0f000a8d',
  'neutron/temporary-filesystem' => '3.0@60e79adfd16f42f4b888e351ad49f9dcb959e3c2',
  'nikic/fast-route' => 'v1.3.0@181d480e08d9476e61381e04a71b34dc0432e812',
  'opis/closure' => '3.6.1@943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5',
  'paragonie/random_compat' => 'v9.99.100@996434e5492cb4c3edcb9168db6fbb1359ef965a',
  'php-di/invoker' => '2.3.0@992fec6c56f2d1ad1ad5fee28267867c85bfb8f9',
  'php-di/php-di' => '6.3.0@955cacea6b0beaba07e8c11b8367f5b3d5abe89f',
  'php-di/phpdoc-reader' => '2.2.1@66daff34cbd2627740ffec9469ffbac9f8c8185c',
  'php-ffmpeg/php-ffmpeg' => 'v0.17.0@a5147d1ae041e78e7870bf2443d4e2dfa7635856',
  'psr/container' => '1.1.0@9fc7aab7a78057a124384358ebae8a1711b6f6fc',
  'psr/event-dispatcher' => '1.0.0@dbefd12671e8a14ec7f180cab83036ed26714bb0',
  'psr/http-client' => '1.0.1@2dfb5f6c5eff0e91e20e913f8c5452ed95b86621',
  'psr/http-message' => '1.0.1@f6561bf28d520154e4b0ec72be95418abe6d9363',
  'psr/log' => '1.1.3@0f73288fd15629204f9d42b7055f72dacbe811fc',
  'psr/simple-cache' => '1.0.1@408d5eafb83c57f6365a3ca330ff23aa4a5fa39b',
  'ralouphie/getallheaders' => '3.0.3@120b605dfeb996808c31b6477290a714d356e822',
  'robmorgan/phinx' => '0.12.5@9457e3879b0abc02a4022941a6a535141889432e',
  'swiftmailer/swiftmailer' => 'v6.2.6@d2791ff0b73247cdc2096b14f5580aba40c12bff',
  'symfony/config' => 'v5.2.4@212d54675bf203ff8aef7d8cee8eecfb72f4a263',
  'symfony/console' => 'v5.2.4@d6d0cc30d8c0fda4e7b213c20509b0159a8f4556',
  'symfony/deprecation-contracts' => 'v2.2.0@5fa56b4074d1ae755beb55617ddafe6f5d78f665',
  'symfony/error-handler' => 'v5.2.4@b547d3babcab5c31e01de59ee33e9d9c1421d7d0',
  'symfony/event-dispatcher' => 'v5.2.4@d08d6ec121a425897951900ab692b612a61d6240',
  'symfony/event-dispatcher-contracts' => 'v2.2.0@0ba7d54483095a198fa51781bc608d17e84dffa2',
  'symfony/filesystem' => 'v5.2.4@710d364200997a5afde34d9fe57bd52f3cc1e108',
  'symfony/finder' => 'v5.2.4@0d639a0943822626290d169965804f79400e6a04',
  'symfony/http-client-contracts' => 'v2.3.1@41db680a15018f9c1d4b23516059633ce280ca33',
  'symfony/http-foundation' => 'v5.2.4@54499baea7f7418bce7b5ec92770fd0799e8e9bf',
  'symfony/http-kernel' => 'v5.2.4@c452dbe4f385f030c3957821bf921b13815d6140',
  'symfony/mime' => 'v5.2.4@5155d2fe14ef1eb150e3bdbbc1ec1455df95e9cd',
  'symfony/polyfill-ctype' => 'v1.22.1@c6c942b1ac76c82448322025e084cadc56048b4e',
  'symfony/polyfill-iconv' => 'v1.22.1@06fb361659649bcfd6a208a0f1fcaf4e827ad342',
  'symfony/polyfill-intl-grapheme' => 'v1.22.1@5601e09b69f26c1828b13b6bb87cb07cddba3170',
  'symfony/polyfill-intl-idn' => 'v1.22.1@2d63434d922daf7da8dd863e7907e67ee3031483',
  'symfony/polyfill-intl-normalizer' => 'v1.22.1@43a0283138253ed1d48d352ab6d0bdb3f809f248',
  'symfony/polyfill-mbstring' => 'v1.22.1@5232de97ee3b75b0360528dae24e73db49566ab1',
  'symfony/polyfill-php72' => 'v1.22.1@cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9',
  'symfony/polyfill-php73' => 'v1.22.1@a678b42e92f86eca04b7fa4c0f6f19d097fb69e2',
  'symfony/polyfill-php80' => 'v1.22.1@dc3063ba22c2a1fd2f45ed856374d79114998f91',
  'symfony/process' => 'v5.2.4@313a38f09c77fbcdc1d223e57d368cea76a2fd2f',
  'symfony/service-contracts' => 'v2.2.0@d15da7ba4957ffb8f1747218be9e1a121fd298a1',
  'symfony/string' => 'v5.2.4@4e78d7d47061fa183639927ec40d607973699609',
  'symfony/translation' => 'v5.2.4@74b0353ab34ff4cca827a2cf909e325d96815e60',
  'symfony/translation-contracts' => 'v2.3.0@e2eaa60b558f26a4b0354e1bbb25636efaaad105',
  'symfony/var-dumper' => 'v5.2.4@6a81fec0628c468cf6d5c87a4d003725e040e223',
  'visavi/cleanup' => 'v1.5.2@fc13c6376fabe61522d4a3cfeab90e8555c1fbd2',
  'visavi/crontask' => 'v1.2.0@372403f32ea5efdc447fe6ecbd6d015eb3ac2f5f',
  'voku/portable-ascii' => '1.5.6@80953678b19901e5165c56752d087fc11526017c',
  'visavi/rotor' => '1.0.0+no-version-set@',
);

    private function __construct()
    {
    }

    /**
     * @psalm-pure
     *
     * @psalm-suppress ImpureMethodCall we know that {@see InstalledVersions} interaction does not
     *                                  cause any side effects here.
     */
    public static function rootPackageName() : string
    {
        if (!class_exists(InstalledVersions::class, false) || !InstalledVersions::getRawData()) {
            return self::ROOT_PACKAGE_NAME;
        }

        return InstalledVersions::getRootPackage()['name'];
    }

    /**
     * @throws OutOfBoundsException If a version cannot be located.
     *
     * @psalm-param key-of<self::VERSIONS> $packageName
     * @psalm-pure
     *
     * @psalm-suppress ImpureMethodCall we know that {@see InstalledVersions} interaction does not
     *                                  cause any side effects here.
     */
    public static function getVersion(string $packageName): string
    {
        if (class_exists(InstalledVersions::class, false) && InstalledVersions::getRawData()) {
            return InstalledVersions::getPrettyVersion($packageName)
                . '@' . InstalledVersions::getReference($packageName);
        }

        if (isset(self::VERSIONS[$packageName])) {
            return self::VERSIONS[$packageName];
        }

        throw new OutOfBoundsException(
            'Required package "' . $packageName . '" is not installed: check your ./vendor/composer/installed.json and/or ./composer.lock files'
        );
    }
}