added predis and eseye back in.

This commit is contained in:
2020-12-25 11:28:41 +00:00
parent 0ddd298350
commit 017f72b42e
670 changed files with 60992 additions and 10 deletions

View File

@@ -6,16 +6,18 @@
"type": "project",
"require": {
"php": "^7.1.3",
"eveseat/eseye": "^2.3",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.3",
"khill/lavacharts": "^3.1.14",
"laravel/framework": "^7.0",
"twbs/bootstrap": "^4.5",
"laravelcollective/html": "^6.0",
"laravel/helpers": "^1.4",
"laravel/socialite": "^5.1",
"laravel/horizon": "^4.0",
"laravel/ui": "^2.0"
"laravel/socialite": "^5.1",
"laravel/ui": "^2.0",
"laravelcollective/html": "^6.0",
"predis/predis": "^1.1",
"twbs/bootstrap": "^4.5"
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.0",

982
composer.lock generated

File diff suppressed because it is too large Load Diff

1
vendor/bin/tokengenerator vendored Symbolic link
View File

@@ -0,0 +1 @@
../eveseat/eseye/bin/tokengenerator

View File

@@ -29,7 +29,7 @@ private static $installed = array (
'aliases' =>
array (
),
'reference' => '516105c492788aee680ef1dce3d45e514d703747',
'reference' => '0ddd2983509921acf00db95c3cd019abf733acb1',
'name' => 'laravel/laravel',
),
'versions' =>
@@ -120,6 +120,15 @@ private static $installed = array (
),
'reference' => 'ca90a3291eee1538cd48ff25163240695bd95448',
),
'eveseat/eseye' =>
array (
'pretty_version' => '2.3.0',
'version' => '2.3.0.0',
'aliases' =>
array (
),
'reference' => 'e1e310592ea03aa8a68728d8c15d7f04cf29f957',
),
'facade/ignition-contracts' =>
array (
'pretty_version' => '1.0.2',
@@ -129,6 +138,15 @@ private static $installed = array (
),
'reference' => '3c921a1cdba35b68a7f0ccffc6dffc1995b18267',
),
'fgrosse/phpasn1' =>
array (
'pretty_version' => 'v2.2.0',
'version' => '2.2.0.0',
'aliases' =>
array (
),
'reference' => 'd1978f7abd580f3fc33561e7f71d4c12c7531fad',
),
'fideloper/proxy' =>
array (
'pretty_version' => '4.4.1',
@@ -445,7 +463,7 @@ private static $installed = array (
'aliases' =>
array (
),
'reference' => '516105c492788aee680ef1dce3d45e514d703747',
'reference' => '0ddd2983509921acf00db95c3cd019abf733acb1',
),
'laravel/socialite' =>
array (
@@ -685,6 +703,15 @@ private static $installed = array (
),
'reference' => '8e86be391a58104ef86037ba8a846524528d784e',
),
'predis/predis' =>
array (
'pretty_version' => 'v1.1.6',
'version' => '1.1.6.0',
'aliases' =>
array (
),
'reference' => '9930e933c67446962997b05201c69c2319bf26de',
),
'psr/container' =>
array (
'pretty_version' => '1.0.0',
@@ -901,6 +928,15 @@ private static $installed = array (
),
'reference' => '99732be0ddb3361e16ad77b68ba41efc8e979019',
),
'spomky-labs/base64url' =>
array (
'pretty_version' => 'v2.0.4',
'version' => '2.0.4.0',
'aliases' =>
array (
),
'reference' => '7752ce931ec285da4ed1f4c5aa27e45e097be61d',
),
'swiftmailer/swiftmailer' =>
array (
'pretty_version' => 'v6.2.4',
@@ -1219,6 +1255,78 @@ private static $installed = array (
),
'reference' => '80953678b19901e5165c56752d087fc11526017c',
),
'web-token/jwt-checker' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => '73ffe42041b0b8d6ddce56e42533a931d249629c',
),
'web-token/jwt-core' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => '8115d846f3a9ee817dca03024eb4c17a3c0ff81a',
),
'web-token/jwt-easy' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => 'cc59f479dd6b5014586be5d2d40ce84bbd9b4539',
),
'web-token/jwt-encryption' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => '36afc9f25fe8546840dc63c3fc1c6fe166879052',
),
'web-token/jwt-signature' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => 'f4d83f77031c9d27edebbea053931074030d3b09',
),
'web-token/jwt-signature-algorithm-ecdsa' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => '3ae6e56ccf34e8b7b65ec988497d5d1bceca9864',
),
'web-token/jwt-signature-algorithm-hmac' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => 'f4fd8166e6830298fc820a8d5776c124cc2496c4',
),
'web-token/jwt-signature-algorithm-rsa' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => 'ba94b8868bd8fdd481f448097ab900a8cb2c0eed',
),
'webmozart/assert' =>
array (
'pretty_version' => '1.9.1',

View File

@@ -165,6 +165,7 @@ return array(
'App\\Traits\\EveOAuth' => $baseDir . '/app/Traits/EveOAuth.php',
'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
'AvailableUserPermissions' => $baseDir . '/database/seeds/AvailableUserPermissions.php',
'Base64Url\\Base64Url' => $vendorDir . '/spomky-labs/base64url/src/Base64Url.php',
'BeyondCode\\DumpServer\\DumpServerCommand' => $vendorDir . '/beyondcode/laravel-dump-server/src/DumpServerCommand.php',
'BeyondCode\\DumpServer\\DumpServerServiceProvider' => $vendorDir . '/beyondcode/laravel-dump-server/src/DumpServerServiceProvider.php',
'BeyondCode\\DumpServer\\Dumper' => $vendorDir . '/beyondcode/laravel-dump-server/src/Dumper.php',
@@ -464,6 +465,60 @@ return array(
'Egulias\\EmailValidator\\Warning\\QuotedString' => $vendorDir . '/egulias/email-validator/src/Warning/QuotedString.php',
'Egulias\\EmailValidator\\Warning\\TLD' => $vendorDir . '/egulias/email-validator/src/Warning/TLD.php',
'Egulias\\EmailValidator\\Warning\\Warning' => $vendorDir . '/egulias/email-validator/src/Warning/Warning.php',
'FG\\ASN1\\ASNObject' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/ASNObject.php',
'FG\\ASN1\\AbstractString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/AbstractString.php',
'FG\\ASN1\\AbstractTime' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/AbstractTime.php',
'FG\\ASN1\\Base128' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Base128.php',
'FG\\ASN1\\Composite\\AttributeTypeAndValue' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Composite/AttributeTypeAndValue.php',
'FG\\ASN1\\Composite\\RDNString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Composite/RDNString.php',
'FG\\ASN1\\Composite\\RelativeDistinguishedName' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Composite/RelativeDistinguishedName.php',
'FG\\ASN1\\Construct' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Construct.php',
'FG\\ASN1\\Exception\\NotImplementedException' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Exception/NotImplementedException.php',
'FG\\ASN1\\Exception\\ParserException' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Exception/ParserException.php',
'FG\\ASN1\\ExplicitlyTaggedObject' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/ExplicitlyTaggedObject.php',
'FG\\ASN1\\Identifier' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Identifier.php',
'FG\\ASN1\\OID' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/OID.php',
'FG\\ASN1\\Parsable' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Parsable.php',
'FG\\ASN1\\TemplateParser' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/TemplateParser.php',
'FG\\ASN1\\Universal\\BMPString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/BMPString.php',
'FG\\ASN1\\Universal\\BitString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/BitString.php',
'FG\\ASN1\\Universal\\Boolean' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/Boolean.php',
'FG\\ASN1\\Universal\\CharacterString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/CharacterString.php',
'FG\\ASN1\\Universal\\Enumerated' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/Enumerated.php',
'FG\\ASN1\\Universal\\GeneralString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/GeneralString.php',
'FG\\ASN1\\Universal\\GeneralizedTime' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/GeneralizedTime.php',
'FG\\ASN1\\Universal\\GraphicString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/GraphicString.php',
'FG\\ASN1\\Universal\\IA5String' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/IA5String.php',
'FG\\ASN1\\Universal\\Integer' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/Integer.php',
'FG\\ASN1\\Universal\\NullObject' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/NullObject.php',
'FG\\ASN1\\Universal\\NumericString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/NumericString.php',
'FG\\ASN1\\Universal\\ObjectDescriptor' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/ObjectDescriptor.php',
'FG\\ASN1\\Universal\\ObjectIdentifier' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/ObjectIdentifier.php',
'FG\\ASN1\\Universal\\OctetString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/OctetString.php',
'FG\\ASN1\\Universal\\PrintableString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/PrintableString.php',
'FG\\ASN1\\Universal\\RelativeObjectIdentifier' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/RelativeObjectIdentifier.php',
'FG\\ASN1\\Universal\\Sequence' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/Sequence.php',
'FG\\ASN1\\Universal\\Set' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/Set.php',
'FG\\ASN1\\Universal\\T61String' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/T61String.php',
'FG\\ASN1\\Universal\\UTCTime' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/UTCTime.php',
'FG\\ASN1\\Universal\\UTF8String' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/UTF8String.php',
'FG\\ASN1\\Universal\\UniversalString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/UniversalString.php',
'FG\\ASN1\\Universal\\VisibleString' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/Universal/VisibleString.php',
'FG\\ASN1\\UnknownConstructedObject' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/UnknownConstructedObject.php',
'FG\\ASN1\\UnknownObject' => $vendorDir . '/fgrosse/phpasn1/lib/ASN1/UnknownObject.php',
'FG\\Utility\\BigInteger' => $vendorDir . '/fgrosse/phpasn1/lib/Utility/BigInteger.php',
'FG\\Utility\\BigIntegerBcmath' => $vendorDir . '/fgrosse/phpasn1/lib/Utility/BigIntegerBcmath.php',
'FG\\Utility\\BigIntegerGmp' => $vendorDir . '/fgrosse/phpasn1/lib/Utility/BigIntegerGmp.php',
'FG\\X509\\AlgorithmIdentifier' => $vendorDir . '/fgrosse/phpasn1/lib/X509/AlgorithmIdentifier.php',
'FG\\X509\\CSR\\Attributes' => $vendorDir . '/fgrosse/phpasn1/lib/X509/CSR/Attributes.php',
'FG\\X509\\CSR\\CSR' => $vendorDir . '/fgrosse/phpasn1/lib/X509/CSR/CSR.php',
'FG\\X509\\CertificateExtensions' => $vendorDir . '/fgrosse/phpasn1/lib/X509/CertificateExtensions.php',
'FG\\X509\\CertificateSubject' => $vendorDir . '/fgrosse/phpasn1/lib/X509/CertificateSubject.php',
'FG\\X509\\PrivateKey' => $vendorDir . '/fgrosse/phpasn1/lib/X509/PrivateKey.php',
'FG\\X509\\PublicKey' => $vendorDir . '/fgrosse/phpasn1/lib/X509/PublicKey.php',
'FG\\X509\\SAN\\DNSName' => $vendorDir . '/fgrosse/phpasn1/lib/X509/SAN/DNSName.php',
'FG\\X509\\SAN\\IPAddress' => $vendorDir . '/fgrosse/phpasn1/lib/X509/SAN/IPAddress.php',
'FG\\X509\\SAN\\SubjectAlternativeNames' => $vendorDir . '/fgrosse/phpasn1/lib/X509/SAN/SubjectAlternativeNames.php',
'Facade\\IgnitionContracts\\BaseSolution' => $vendorDir . '/facade/ignition-contracts/src/BaseSolution.php',
'Facade\\IgnitionContracts\\HasSolutionsForThrowable' => $vendorDir . '/facade/ignition-contracts/src/HasSolutionsForThrowable.php',
'Facade\\IgnitionContracts\\ProvidesSolution' => $vendorDir . '/facade/ignition-contracts/src/ProvidesSolution.php',
@@ -1950,6 +2005,177 @@ return array(
'Illuminate\\View\\ViewFinderInterface' => $vendorDir . '/laravel/framework/src/Illuminate/View/ViewFinderInterface.php',
'Illuminate\\View\\ViewName' => $vendorDir . '/laravel/framework/src/Illuminate/View/ViewName.php',
'Illuminate\\View\\ViewServiceProvider' => $vendorDir . '/laravel/framework/src/Illuminate/View/ViewServiceProvider.php',
'Jose\\Component\\Checker\\AlgorithmChecker' => $vendorDir . '/web-token/jwt-checker/AlgorithmChecker.php',
'Jose\\Component\\Checker\\AudienceChecker' => $vendorDir . '/web-token/jwt-checker/AudienceChecker.php',
'Jose\\Component\\Checker\\ClaimChecker' => $vendorDir . '/web-token/jwt-checker/ClaimChecker.php',
'Jose\\Component\\Checker\\ClaimCheckerManager' => $vendorDir . '/web-token/jwt-checker/ClaimCheckerManager.php',
'Jose\\Component\\Checker\\ClaimCheckerManagerFactory' => $vendorDir . '/web-token/jwt-checker/ClaimCheckerManagerFactory.php',
'Jose\\Component\\Checker\\ClaimExceptionInterface' => $vendorDir . '/web-token/jwt-checker/ClaimExceptionInterface.php',
'Jose\\Component\\Checker\\ExpirationTimeChecker' => $vendorDir . '/web-token/jwt-checker/ExpirationTimeChecker.php',
'Jose\\Component\\Checker\\HeaderChecker' => $vendorDir . '/web-token/jwt-checker/HeaderChecker.php',
'Jose\\Component\\Checker\\HeaderCheckerManager' => $vendorDir . '/web-token/jwt-checker/HeaderCheckerManager.php',
'Jose\\Component\\Checker\\HeaderCheckerManagerFactory' => $vendorDir . '/web-token/jwt-checker/HeaderCheckerManagerFactory.php',
'Jose\\Component\\Checker\\InvalidClaimException' => $vendorDir . '/web-token/jwt-checker/InvalidClaimException.php',
'Jose\\Component\\Checker\\InvalidHeaderException' => $vendorDir . '/web-token/jwt-checker/InvalidHeaderException.php',
'Jose\\Component\\Checker\\IssuedAtChecker' => $vendorDir . '/web-token/jwt-checker/IssuedAtChecker.php',
'Jose\\Component\\Checker\\IssuerChecker' => $vendorDir . '/web-token/jwt-checker/IssuerChecker.php',
'Jose\\Component\\Checker\\MissingMandatoryClaimException' => $vendorDir . '/web-token/jwt-checker/MissingMandatoryClaimException.php',
'Jose\\Component\\Checker\\MissingMandatoryHeaderParameterException' => $vendorDir . '/web-token/jwt-checker/MissingMandatoryHeaderParameterException.php',
'Jose\\Component\\Checker\\NotBeforeChecker' => $vendorDir . '/web-token/jwt-checker/NotBeforeChecker.php',
'Jose\\Component\\Checker\\Tests\\AlgorithmHeaderCheckerTest' => $vendorDir . '/web-token/jwt-checker/Tests/AlgorithmHeaderCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\AudienceClaimCheckerTest' => $vendorDir . '/web-token/jwt-checker/Tests/AudienceClaimCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\AudienceHeaderCheckerTest' => $vendorDir . '/web-token/jwt-checker/Tests/AudienceHeaderCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\ClaimCheckerManagerFactoryTest' => $vendorDir . '/web-token/jwt-checker/Tests/ClaimCheckerManagerFactoryTest.php',
'Jose\\Component\\Checker\\Tests\\ClaimCheckerManagerTest' => $vendorDir . '/web-token/jwt-checker/Tests/ClaimCheckerManagerTest.php',
'Jose\\Component\\Checker\\Tests\\ExpirationTimeClaimCheckerTest' => $vendorDir . '/web-token/jwt-checker/Tests/ExpirationTimeClaimCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\HeaderCheckerManagerFactoryTest' => $vendorDir . '/web-token/jwt-checker/Tests/HeaderCheckerManagerFactoryTest.php',
'Jose\\Component\\Checker\\Tests\\IssuedAtClaimCheckerTest' => $vendorDir . '/web-token/jwt-checker/Tests/IssuedAtClaimCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\NotBeforeClaimCheckerTest' => $vendorDir . '/web-token/jwt-checker/Tests/NotBeforeClaimCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\Stub\\OtherToken' => $vendorDir . '/web-token/jwt-checker/Tests/Stub/OtherToken.php',
'Jose\\Component\\Checker\\Tests\\Stub\\Token' => $vendorDir . '/web-token/jwt-checker/Tests/Stub/Token.php',
'Jose\\Component\\Checker\\Tests\\Stub\\TokenSupport' => $vendorDir . '/web-token/jwt-checker/Tests/Stub/TokenSupport.php',
'Jose\\Component\\Checker\\Tests\\UnencodedPayloadHeaderCheckerTest' => $vendorDir . '/web-token/jwt-checker/Tests/UnencodedPayloadHeaderCheckerTest.php',
'Jose\\Component\\Checker\\TokenTypeSupport' => $vendorDir . '/web-token/jwt-checker/TokenTypeSupport.php',
'Jose\\Component\\Checker\\UnencodedPayloadChecker' => $vendorDir . '/web-token/jwt-checker/UnencodedPayloadChecker.php',
'Jose\\Component\\Core\\Algorithm' => $vendorDir . '/web-token/jwt-core/Algorithm.php',
'Jose\\Component\\Core\\AlgorithmManager' => $vendorDir . '/web-token/jwt-core/AlgorithmManager.php',
'Jose\\Component\\Core\\AlgorithmManagerFactory' => $vendorDir . '/web-token/jwt-core/AlgorithmManagerFactory.php',
'Jose\\Component\\Core\\JWK' => $vendorDir . '/web-token/jwt-core/JWK.php',
'Jose\\Component\\Core\\JWKSet' => $vendorDir . '/web-token/jwt-core/JWKSet.php',
'Jose\\Component\\Core\\JWT' => $vendorDir . '/web-token/jwt-core/JWT.php',
'Jose\\Component\\Core\\Tests\\AlgorithmManagerFactoryTest' => $vendorDir . '/web-token/jwt-core/Tests/AlgorithmManagerFactoryTest.php',
'Jose\\Component\\Core\\Tests\\FooAlgorithm' => $vendorDir . '/web-token/jwt-core/Tests/FooAlgorithm.php',
'Jose\\Component\\Core\\Tests\\JWKSetTest' => $vendorDir . '/web-token/jwt-core/Tests/JWKSetTest.php',
'Jose\\Component\\Core\\Tests\\JWKTest' => $vendorDir . '/web-token/jwt-core/Tests/JWKTest.php',
'Jose\\Component\\Core\\Tests\\JsonConverterTest' => $vendorDir . '/web-token/jwt-core/Tests/JsonConverterTest.php',
'Jose\\Component\\Core\\Util\\BigInteger' => $vendorDir . '/web-token/jwt-core/Util/BigInteger.php',
'Jose\\Component\\Core\\Util\\ECKey' => $vendorDir . '/web-token/jwt-core/Util/ECKey.php',
'Jose\\Component\\Core\\Util\\ECSignature' => $vendorDir . '/web-token/jwt-core/Util/ECSignature.php',
'Jose\\Component\\Core\\Util\\Hash' => $vendorDir . '/web-token/jwt-core/Util/Hash.php',
'Jose\\Component\\Core\\Util\\JsonConverter' => $vendorDir . '/web-token/jwt-core/Util/JsonConverter.php',
'Jose\\Component\\Core\\Util\\KeyChecker' => $vendorDir . '/web-token/jwt-core/Util/KeyChecker.php',
'Jose\\Component\\Core\\Util\\RSAKey' => $vendorDir . '/web-token/jwt-core/Util/RSAKey.php',
'Jose\\Component\\Encryption\\Algorithm\\ContentEncryptionAlgorithm' => $vendorDir . '/web-token/jwt-encryption/Algorithm/ContentEncryptionAlgorithm.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryptionAlgorithm' => $vendorDir . '/web-token/jwt-encryption/Algorithm/KeyEncryptionAlgorithm.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\DirectEncryption' => $vendorDir . '/web-token/jwt-encryption/Algorithm/KeyEncryption/DirectEncryption.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\KeyAgreement' => $vendorDir . '/web-token/jwt-encryption/Algorithm/KeyEncryption/KeyAgreement.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\KeyAgreementWithKeyWrapping' => $vendorDir . '/web-token/jwt-encryption/Algorithm/KeyEncryption/KeyAgreementWithKeyWrapping.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\KeyEncryption' => $vendorDir . '/web-token/jwt-encryption/Algorithm/KeyEncryption/KeyEncryption.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\KeyWrapping' => $vendorDir . '/web-token/jwt-encryption/Algorithm/KeyEncryption/KeyWrapping.php',
'Jose\\Component\\Encryption\\Compression\\CompressionMethod' => $vendorDir . '/web-token/jwt-encryption/Compression/CompressionMethod.php',
'Jose\\Component\\Encryption\\Compression\\CompressionMethodManager' => $vendorDir . '/web-token/jwt-encryption/Compression/CompressionMethodManager.php',
'Jose\\Component\\Encryption\\Compression\\CompressionMethodManagerFactory' => $vendorDir . '/web-token/jwt-encryption/Compression/CompressionMethodManagerFactory.php',
'Jose\\Component\\Encryption\\Compression\\Deflate' => $vendorDir . '/web-token/jwt-encryption/Compression/Deflate.php',
'Jose\\Component\\Encryption\\JWE' => $vendorDir . '/web-token/jwt-encryption/JWE.php',
'Jose\\Component\\Encryption\\JWEBuilder' => $vendorDir . '/web-token/jwt-encryption/JWEBuilder.php',
'Jose\\Component\\Encryption\\JWEBuilderFactory' => $vendorDir . '/web-token/jwt-encryption/JWEBuilderFactory.php',
'Jose\\Component\\Encryption\\JWEDecrypter' => $vendorDir . '/web-token/jwt-encryption/JWEDecrypter.php',
'Jose\\Component\\Encryption\\JWEDecrypterFactory' => $vendorDir . '/web-token/jwt-encryption/JWEDecrypterFactory.php',
'Jose\\Component\\Encryption\\JWELoader' => $vendorDir . '/web-token/jwt-encryption/JWELoader.php',
'Jose\\Component\\Encryption\\JWELoaderFactory' => $vendorDir . '/web-token/jwt-encryption/JWELoaderFactory.php',
'Jose\\Component\\Encryption\\JWETokenSupport' => $vendorDir . '/web-token/jwt-encryption/JWETokenSupport.php',
'Jose\\Component\\Encryption\\Recipient' => $vendorDir . '/web-token/jwt-encryption/Recipient.php',
'Jose\\Component\\Encryption\\Serializer\\CompactSerializer' => $vendorDir . '/web-token/jwt-encryption/Serializer/CompactSerializer.php',
'Jose\\Component\\Encryption\\Serializer\\JSONFlattenedSerializer' => $vendorDir . '/web-token/jwt-encryption/Serializer/JSONFlattenedSerializer.php',
'Jose\\Component\\Encryption\\Serializer\\JSONGeneralSerializer' => $vendorDir . '/web-token/jwt-encryption/Serializer/JSONGeneralSerializer.php',
'Jose\\Component\\Encryption\\Serializer\\JWESerializer' => $vendorDir . '/web-token/jwt-encryption/Serializer/JWESerializer.php',
'Jose\\Component\\Encryption\\Serializer\\JWESerializerManager' => $vendorDir . '/web-token/jwt-encryption/Serializer/JWESerializerManager.php',
'Jose\\Component\\Encryption\\Serializer\\JWESerializerManagerFactory' => $vendorDir . '/web-token/jwt-encryption/Serializer/JWESerializerManagerFactory.php',
'Jose\\Component\\Encryption\\Tests\\CompressionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/CompressionTest.php',
'Jose\\Component\\Encryption\\Tests\\ECDHESWithX25519EncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/ECDHESWithX25519EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\EncrypterTest' => $vendorDir . '/web-token/jwt-encryption/Tests/EncrypterTest.php',
'Jose\\Component\\Encryption\\Tests\\EncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\InvalidCurveAttackTest' => $vendorDir . '/web-token/jwt-encryption/Tests/InvalidCurveAttackTest.php',
'Jose\\Component\\Encryption\\Tests\\JWEFlattenedTest' => $vendorDir . '/web-token/jwt-encryption/Tests/JWEFlattenedTest.php',
'Jose\\Component\\Encryption\\Tests\\JWELoaderTest' => $vendorDir . '/web-token/jwt-encryption/Tests/JWELoaderTest.php',
'Jose\\Component\\Encryption\\Tests\\JWESplitTest' => $vendorDir . '/web-token/jwt-encryption/Tests/JWESplitTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionProtectedContentOnlyTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionProtectedContentOnlyTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionWithAdditionalAuthenticatedDataTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionWithAdditionalAuthenticatedDataTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionWithCompressionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionWithCompressionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionWithSpecificProtectedHeaderValuesTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionWithSpecificProtectedHeaderValuesTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A256GCMKWAndA128CBC_HS256EncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/A256GCMKWAndA128CBC_HS256EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\DirAndA128GCMEncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/DirAndA128GCMEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\ECDH_ES_A128KWAndA128GCMEncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/ECDH_ES_A128KWAndA128GCMEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\ECDH_ES_AndA128CBC_HS256EncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/ECDH_ES_AndA128CBC_HS256EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\MultipleRecipientEncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/MultipleRecipientEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\PBES2_HS512_A256KWAndA128CBC_HS256EncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/PBES2_HS512_A256KWAndA128CBC_HS256EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\RSA1_5AndA128CBC_HS256EncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/RSA1_5AndA128CBC_HS256EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\RSA_OAEPAndA256GCMEncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RFC7520/RSA_OAEPAndA256GCMEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RSAEncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RSAEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RSAKeyEncryptionTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RSAKeyEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RSAKeyWithoutAllPrimesTest' => $vendorDir . '/web-token/jwt-encryption/Tests/RSAKeyWithoutAllPrimesTest.php',
'Jose\\Component\\Signature\\Algorithm\\ECDSA' => $vendorDir . '/web-token/jwt-signature-algorithm-ecdsa/ECDSA.php',
'Jose\\Component\\Signature\\Algorithm\\ES256' => $vendorDir . '/web-token/jwt-signature-algorithm-ecdsa/ES256.php',
'Jose\\Component\\Signature\\Algorithm\\ES384' => $vendorDir . '/web-token/jwt-signature-algorithm-ecdsa/ES384.php',
'Jose\\Component\\Signature\\Algorithm\\ES512' => $vendorDir . '/web-token/jwt-signature-algorithm-ecdsa/ES512.php',
'Jose\\Component\\Signature\\Algorithm\\HMAC' => $vendorDir . '/web-token/jwt-signature-algorithm-hmac/HMAC.php',
'Jose\\Component\\Signature\\Algorithm\\HS256' => $vendorDir . '/web-token/jwt-signature-algorithm-hmac/HS256.php',
'Jose\\Component\\Signature\\Algorithm\\HS384' => $vendorDir . '/web-token/jwt-signature-algorithm-hmac/HS384.php',
'Jose\\Component\\Signature\\Algorithm\\HS512' => $vendorDir . '/web-token/jwt-signature-algorithm-hmac/HS512.php',
'Jose\\Component\\Signature\\Algorithm\\MacAlgorithm' => $vendorDir . '/web-token/jwt-signature/Algorithm/MacAlgorithm.php',
'Jose\\Component\\Signature\\Algorithm\\PS256' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/PS256.php',
'Jose\\Component\\Signature\\Algorithm\\PS384' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/PS384.php',
'Jose\\Component\\Signature\\Algorithm\\PS512' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/PS512.php',
'Jose\\Component\\Signature\\Algorithm\\RS256' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/RS256.php',
'Jose\\Component\\Signature\\Algorithm\\RS384' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/RS384.php',
'Jose\\Component\\Signature\\Algorithm\\RS512' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/RS512.php',
'Jose\\Component\\Signature\\Algorithm\\RSA' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/RSA.php',
'Jose\\Component\\Signature\\Algorithm\\RSAPKCS1' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/RSAPKCS1.php',
'Jose\\Component\\Signature\\Algorithm\\RSAPSS' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/RSAPSS.php',
'Jose\\Component\\Signature\\Algorithm\\SignatureAlgorithm' => $vendorDir . '/web-token/jwt-signature/Algorithm/SignatureAlgorithm.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\ECDSAFromRFC6979Test' => $vendorDir . '/web-token/jwt-signature-algorithm-ecdsa/Tests/ECDSAFromRFC6979Test.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\ECDSAFromRFC7520Test' => $vendorDir . '/web-token/jwt-signature-algorithm-ecdsa/Tests/ECDSAFromRFC7520Test.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\ECDSASignatureTest' => $vendorDir . '/web-token/jwt-signature-algorithm-ecdsa/Tests/ECDSASignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\HMACFromRFC7520Test' => $vendorDir . '/web-token/jwt-signature-algorithm-hmac/Tests/HMACFromRFC7520Test.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\HMACSignatureTest' => $vendorDir . '/web-token/jwt-signature-algorithm-hmac/Tests/HMACSignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\RSA15SignatureTest' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/Tests/RSA15SignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\RSAKeyWithoutAllPrimesTest' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/Tests/RSAKeyWithoutAllPrimesTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\RSAPSSSignatureTest' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/Tests/RSAPSSSignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\RSASignatureTest' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/Tests/RSASignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Util\\RSA' => $vendorDir . '/web-token/jwt-signature-algorithm-rsa/Util/RSA.php',
'Jose\\Component\\Signature\\JWS' => $vendorDir . '/web-token/jwt-signature/JWS.php',
'Jose\\Component\\Signature\\JWSBuilder' => $vendorDir . '/web-token/jwt-signature/JWSBuilder.php',
'Jose\\Component\\Signature\\JWSBuilderFactory' => $vendorDir . '/web-token/jwt-signature/JWSBuilderFactory.php',
'Jose\\Component\\Signature\\JWSLoader' => $vendorDir . '/web-token/jwt-signature/JWSLoader.php',
'Jose\\Component\\Signature\\JWSLoaderFactory' => $vendorDir . '/web-token/jwt-signature/JWSLoaderFactory.php',
'Jose\\Component\\Signature\\JWSTokenSupport' => $vendorDir . '/web-token/jwt-signature/JWSTokenSupport.php',
'Jose\\Component\\Signature\\JWSVerifier' => $vendorDir . '/web-token/jwt-signature/JWSVerifier.php',
'Jose\\Component\\Signature\\JWSVerifierFactory' => $vendorDir . '/web-token/jwt-signature/JWSVerifierFactory.php',
'Jose\\Component\\Signature\\Serializer\\CompactSerializer' => $vendorDir . '/web-token/jwt-signature/Serializer/CompactSerializer.php',
'Jose\\Component\\Signature\\Serializer\\JSONFlattenedSerializer' => $vendorDir . '/web-token/jwt-signature/Serializer/JSONFlattenedSerializer.php',
'Jose\\Component\\Signature\\Serializer\\JSONGeneralSerializer' => $vendorDir . '/web-token/jwt-signature/Serializer/JSONGeneralSerializer.php',
'Jose\\Component\\Signature\\Serializer\\JWSSerializer' => $vendorDir . '/web-token/jwt-signature/Serializer/JWSSerializer.php',
'Jose\\Component\\Signature\\Serializer\\JWSSerializerManager' => $vendorDir . '/web-token/jwt-signature/Serializer/JWSSerializerManager.php',
'Jose\\Component\\Signature\\Serializer\\JWSSerializerManagerFactory' => $vendorDir . '/web-token/jwt-signature/Serializer/JWSSerializerManagerFactory.php',
'Jose\\Component\\Signature\\Serializer\\Serializer' => $vendorDir . '/web-token/jwt-signature/Serializer/Serializer.php',
'Jose\\Component\\Signature\\Signature' => $vendorDir . '/web-token/jwt-signature/Signature.php',
'Jose\\Component\\Signature\\Tests\\ForeignJWTTest' => $vendorDir . '/web-token/jwt-signature/Tests/ForeignJWTTest.php',
'Jose\\Component\\Signature\\Tests\\JWSFlattenedTest' => $vendorDir . '/web-token/jwt-signature/Tests/JWSFlattenedTest.php',
'Jose\\Component\\Signature\\Tests\\JWSLoaderTest' => $vendorDir . '/web-token/jwt-signature/Tests/JWSLoaderTest.php',
'Jose\\Component\\Signature\\Tests\\JWSSplitTest' => $vendorDir . '/web-token/jwt-signature/Tests/JWSSplitTest.php',
'Jose\\Component\\Signature\\Tests\\JWSTest' => $vendorDir . '/web-token/jwt-signature/Tests/JWSTest.php',
'Jose\\Component\\Signature\\Tests\\RFC7520\\MultipleSignaturesTest' => $vendorDir . '/web-token/jwt-signature/Tests/RFC7520/MultipleSignaturesTest.php',
'Jose\\Component\\Signature\\Tests\\RFC7520\\NestingTest' => $vendorDir . '/web-token/jwt-signature/Tests/RFC7520/NestingTest.php',
'Jose\\Component\\Signature\\Tests\\SignatureTest' => $vendorDir . '/web-token/jwt-signature/Tests/SignatureTest.php',
'Jose\\Component\\Signature\\Tests\\SignerTest' => $vendorDir . '/web-token/jwt-signature/Tests/SignerTest.php',
'Jose\\Easy\\AbstractBuilder' => $vendorDir . '/web-token/jwt-easy/AbstractBuilder.php',
'Jose\\Easy\\AbstractLoader' => $vendorDir . '/web-token/jwt-easy/AbstractLoader.php',
'Jose\\Easy\\AlgorithmProvider' => $vendorDir . '/web-token/jwt-easy/AlgorithmProvider.php',
'Jose\\Easy\\Build' => $vendorDir . '/web-token/jwt-easy/Build.php',
'Jose\\Easy\\CallableChecker' => $vendorDir . '/web-token/jwt-easy/CallableChecker.php',
'Jose\\Easy\\ContentEncryptionAlgorithmChecker' => $vendorDir . '/web-token/jwt-easy/ContentEncryptionAlgorithmChecker.php',
'Jose\\Easy\\Decrypt' => $vendorDir . '/web-token/jwt-easy/Decrypt.php',
'Jose\\Easy\\JWEBuilder' => $vendorDir . '/web-token/jwt-easy/JWEBuilder.php',
'Jose\\Easy\\JWSBuilder' => $vendorDir . '/web-token/jwt-easy/JWSBuilder.php',
'Jose\\Easy\\JWT' => $vendorDir . '/web-token/jwt-easy/JWT.php',
'Jose\\Easy\\Load' => $vendorDir . '/web-token/jwt-easy/Load.php',
'Jose\\Easy\\ParameterBag' => $vendorDir . '/web-token/jwt-easy/ParameterBag.php',
'Jose\\Easy\\Tests\\AlgorithmProviderTest' => $vendorDir . '/web-token/jwt-easy/Tests/AlgorithmProviderTest.php',
'Jose\\Easy\\Tests\\EncryptionTest' => $vendorDir . '/web-token/jwt-easy/Tests/EncryptionTest.php',
'Jose\\Easy\\Tests\\ParameterBagTest' => $vendorDir . '/web-token/jwt-easy/Tests/ParameterBagTest.php',
'Jose\\Easy\\Tests\\SignatureTest' => $vendorDir . '/web-token/jwt-easy/Tests/SignatureTest.php',
'Jose\\Easy\\Validate' => $vendorDir . '/web-token/jwt-easy/Validate.php',
'JsonException' => $vendorDir . '/symfony/polyfill-php73/Resources/stubs/JsonException.php',
'Khill\\Lavacharts\\Builders\\ChartBuilder' => $vendorDir . '/khill/lavacharts/src/Builders/ChartBuilder.php',
'Khill\\Lavacharts\\Builders\\DashboardBuilder' => $vendorDir . '/khill/lavacharts/src/Builders/DashboardBuilder.php',
@@ -3238,6 +3464,277 @@ return array(
'PhpOption\\None' => $vendorDir . '/phpoption/phpoption/src/PhpOption/None.php',
'PhpOption\\Option' => $vendorDir . '/phpoption/phpoption/src/PhpOption/Option.php',
'PhpOption\\Some' => $vendorDir . '/phpoption/phpoption/src/PhpOption/Some.php',
'Predis\\Autoloader' => $vendorDir . '/predis/predis/src/Autoloader.php',
'Predis\\Client' => $vendorDir . '/predis/predis/src/Client.php',
'Predis\\ClientContextInterface' => $vendorDir . '/predis/predis/src/ClientContextInterface.php',
'Predis\\ClientException' => $vendorDir . '/predis/predis/src/ClientException.php',
'Predis\\ClientInterface' => $vendorDir . '/predis/predis/src/ClientInterface.php',
'Predis\\Cluster\\ClusterStrategy' => $vendorDir . '/predis/predis/src/Cluster/ClusterStrategy.php',
'Predis\\Cluster\\Distributor\\DistributorInterface' => $vendorDir . '/predis/predis/src/Cluster/Distributor/DistributorInterface.php',
'Predis\\Cluster\\Distributor\\EmptyRingException' => $vendorDir . '/predis/predis/src/Cluster/Distributor/EmptyRingException.php',
'Predis\\Cluster\\Distributor\\HashRing' => $vendorDir . '/predis/predis/src/Cluster/Distributor/HashRing.php',
'Predis\\Cluster\\Distributor\\KetamaRing' => $vendorDir . '/predis/predis/src/Cluster/Distributor/KetamaRing.php',
'Predis\\Cluster\\Hash\\CRC16' => $vendorDir . '/predis/predis/src/Cluster/Hash/CRC16.php',
'Predis\\Cluster\\Hash\\HashGeneratorInterface' => $vendorDir . '/predis/predis/src/Cluster/Hash/HashGeneratorInterface.php',
'Predis\\Cluster\\PredisStrategy' => $vendorDir . '/predis/predis/src/Cluster/PredisStrategy.php',
'Predis\\Cluster\\RedisStrategy' => $vendorDir . '/predis/predis/src/Cluster/RedisStrategy.php',
'Predis\\Cluster\\StrategyInterface' => $vendorDir . '/predis/predis/src/Cluster/StrategyInterface.php',
'Predis\\Collection\\Iterator\\CursorBasedIterator' => $vendorDir . '/predis/predis/src/Collection/Iterator/CursorBasedIterator.php',
'Predis\\Collection\\Iterator\\HashKey' => $vendorDir . '/predis/predis/src/Collection/Iterator/HashKey.php',
'Predis\\Collection\\Iterator\\Keyspace' => $vendorDir . '/predis/predis/src/Collection/Iterator/Keyspace.php',
'Predis\\Collection\\Iterator\\ListKey' => $vendorDir . '/predis/predis/src/Collection/Iterator/ListKey.php',
'Predis\\Collection\\Iterator\\SetKey' => $vendorDir . '/predis/predis/src/Collection/Iterator/SetKey.php',
'Predis\\Collection\\Iterator\\SortedSetKey' => $vendorDir . '/predis/predis/src/Collection/Iterator/SortedSetKey.php',
'Predis\\Command\\Command' => $vendorDir . '/predis/predis/src/Command/Command.php',
'Predis\\Command\\CommandInterface' => $vendorDir . '/predis/predis/src/Command/CommandInterface.php',
'Predis\\Command\\ConnectionAuth' => $vendorDir . '/predis/predis/src/Command/ConnectionAuth.php',
'Predis\\Command\\ConnectionEcho' => $vendorDir . '/predis/predis/src/Command/ConnectionEcho.php',
'Predis\\Command\\ConnectionPing' => $vendorDir . '/predis/predis/src/Command/ConnectionPing.php',
'Predis\\Command\\ConnectionQuit' => $vendorDir . '/predis/predis/src/Command/ConnectionQuit.php',
'Predis\\Command\\ConnectionSelect' => $vendorDir . '/predis/predis/src/Command/ConnectionSelect.php',
'Predis\\Command\\GeospatialGeoAdd' => $vendorDir . '/predis/predis/src/Command/GeospatialGeoAdd.php',
'Predis\\Command\\GeospatialGeoDist' => $vendorDir . '/predis/predis/src/Command/GeospatialGeoDist.php',
'Predis\\Command\\GeospatialGeoHash' => $vendorDir . '/predis/predis/src/Command/GeospatialGeoHash.php',
'Predis\\Command\\GeospatialGeoPos' => $vendorDir . '/predis/predis/src/Command/GeospatialGeoPos.php',
'Predis\\Command\\GeospatialGeoRadius' => $vendorDir . '/predis/predis/src/Command/GeospatialGeoRadius.php',
'Predis\\Command\\GeospatialGeoRadiusByMember' => $vendorDir . '/predis/predis/src/Command/GeospatialGeoRadiusByMember.php',
'Predis\\Command\\HashDelete' => $vendorDir . '/predis/predis/src/Command/HashDelete.php',
'Predis\\Command\\HashExists' => $vendorDir . '/predis/predis/src/Command/HashExists.php',
'Predis\\Command\\HashGet' => $vendorDir . '/predis/predis/src/Command/HashGet.php',
'Predis\\Command\\HashGetAll' => $vendorDir . '/predis/predis/src/Command/HashGetAll.php',
'Predis\\Command\\HashGetMultiple' => $vendorDir . '/predis/predis/src/Command/HashGetMultiple.php',
'Predis\\Command\\HashIncrementBy' => $vendorDir . '/predis/predis/src/Command/HashIncrementBy.php',
'Predis\\Command\\HashIncrementByFloat' => $vendorDir . '/predis/predis/src/Command/HashIncrementByFloat.php',
'Predis\\Command\\HashKeys' => $vendorDir . '/predis/predis/src/Command/HashKeys.php',
'Predis\\Command\\HashLength' => $vendorDir . '/predis/predis/src/Command/HashLength.php',
'Predis\\Command\\HashScan' => $vendorDir . '/predis/predis/src/Command/HashScan.php',
'Predis\\Command\\HashSet' => $vendorDir . '/predis/predis/src/Command/HashSet.php',
'Predis\\Command\\HashSetMultiple' => $vendorDir . '/predis/predis/src/Command/HashSetMultiple.php',
'Predis\\Command\\HashSetPreserve' => $vendorDir . '/predis/predis/src/Command/HashSetPreserve.php',
'Predis\\Command\\HashStringLength' => $vendorDir . '/predis/predis/src/Command/HashStringLength.php',
'Predis\\Command\\HashValues' => $vendorDir . '/predis/predis/src/Command/HashValues.php',
'Predis\\Command\\HyperLogLogAdd' => $vendorDir . '/predis/predis/src/Command/HyperLogLogAdd.php',
'Predis\\Command\\HyperLogLogCount' => $vendorDir . '/predis/predis/src/Command/HyperLogLogCount.php',
'Predis\\Command\\HyperLogLogMerge' => $vendorDir . '/predis/predis/src/Command/HyperLogLogMerge.php',
'Predis\\Command\\KeyDelete' => $vendorDir . '/predis/predis/src/Command/KeyDelete.php',
'Predis\\Command\\KeyDump' => $vendorDir . '/predis/predis/src/Command/KeyDump.php',
'Predis\\Command\\KeyExists' => $vendorDir . '/predis/predis/src/Command/KeyExists.php',
'Predis\\Command\\KeyExpire' => $vendorDir . '/predis/predis/src/Command/KeyExpire.php',
'Predis\\Command\\KeyExpireAt' => $vendorDir . '/predis/predis/src/Command/KeyExpireAt.php',
'Predis\\Command\\KeyKeys' => $vendorDir . '/predis/predis/src/Command/KeyKeys.php',
'Predis\\Command\\KeyMigrate' => $vendorDir . '/predis/predis/src/Command/KeyMigrate.php',
'Predis\\Command\\KeyMove' => $vendorDir . '/predis/predis/src/Command/KeyMove.php',
'Predis\\Command\\KeyPersist' => $vendorDir . '/predis/predis/src/Command/KeyPersist.php',
'Predis\\Command\\KeyPreciseExpire' => $vendorDir . '/predis/predis/src/Command/KeyPreciseExpire.php',
'Predis\\Command\\KeyPreciseExpireAt' => $vendorDir . '/predis/predis/src/Command/KeyPreciseExpireAt.php',
'Predis\\Command\\KeyPreciseTimeToLive' => $vendorDir . '/predis/predis/src/Command/KeyPreciseTimeToLive.php',
'Predis\\Command\\KeyRandom' => $vendorDir . '/predis/predis/src/Command/KeyRandom.php',
'Predis\\Command\\KeyRename' => $vendorDir . '/predis/predis/src/Command/KeyRename.php',
'Predis\\Command\\KeyRenamePreserve' => $vendorDir . '/predis/predis/src/Command/KeyRenamePreserve.php',
'Predis\\Command\\KeyRestore' => $vendorDir . '/predis/predis/src/Command/KeyRestore.php',
'Predis\\Command\\KeyScan' => $vendorDir . '/predis/predis/src/Command/KeyScan.php',
'Predis\\Command\\KeySort' => $vendorDir . '/predis/predis/src/Command/KeySort.php',
'Predis\\Command\\KeyTimeToLive' => $vendorDir . '/predis/predis/src/Command/KeyTimeToLive.php',
'Predis\\Command\\KeyType' => $vendorDir . '/predis/predis/src/Command/KeyType.php',
'Predis\\Command\\ListIndex' => $vendorDir . '/predis/predis/src/Command/ListIndex.php',
'Predis\\Command\\ListInsert' => $vendorDir . '/predis/predis/src/Command/ListInsert.php',
'Predis\\Command\\ListLength' => $vendorDir . '/predis/predis/src/Command/ListLength.php',
'Predis\\Command\\ListPopFirst' => $vendorDir . '/predis/predis/src/Command/ListPopFirst.php',
'Predis\\Command\\ListPopFirstBlocking' => $vendorDir . '/predis/predis/src/Command/ListPopFirstBlocking.php',
'Predis\\Command\\ListPopLast' => $vendorDir . '/predis/predis/src/Command/ListPopLast.php',
'Predis\\Command\\ListPopLastBlocking' => $vendorDir . '/predis/predis/src/Command/ListPopLastBlocking.php',
'Predis\\Command\\ListPopLastPushHead' => $vendorDir . '/predis/predis/src/Command/ListPopLastPushHead.php',
'Predis\\Command\\ListPopLastPushHeadBlocking' => $vendorDir . '/predis/predis/src/Command/ListPopLastPushHeadBlocking.php',
'Predis\\Command\\ListPushHead' => $vendorDir . '/predis/predis/src/Command/ListPushHead.php',
'Predis\\Command\\ListPushHeadX' => $vendorDir . '/predis/predis/src/Command/ListPushHeadX.php',
'Predis\\Command\\ListPushTail' => $vendorDir . '/predis/predis/src/Command/ListPushTail.php',
'Predis\\Command\\ListPushTailX' => $vendorDir . '/predis/predis/src/Command/ListPushTailX.php',
'Predis\\Command\\ListRange' => $vendorDir . '/predis/predis/src/Command/ListRange.php',
'Predis\\Command\\ListRemove' => $vendorDir . '/predis/predis/src/Command/ListRemove.php',
'Predis\\Command\\ListSet' => $vendorDir . '/predis/predis/src/Command/ListSet.php',
'Predis\\Command\\ListTrim' => $vendorDir . '/predis/predis/src/Command/ListTrim.php',
'Predis\\Command\\PrefixableCommandInterface' => $vendorDir . '/predis/predis/src/Command/PrefixableCommandInterface.php',
'Predis\\Command\\Processor\\KeyPrefixProcessor' => $vendorDir . '/predis/predis/src/Command/Processor/KeyPrefixProcessor.php',
'Predis\\Command\\Processor\\ProcessorChain' => $vendorDir . '/predis/predis/src/Command/Processor/ProcessorChain.php',
'Predis\\Command\\Processor\\ProcessorInterface' => $vendorDir . '/predis/predis/src/Command/Processor/ProcessorInterface.php',
'Predis\\Command\\PubSubPublish' => $vendorDir . '/predis/predis/src/Command/PubSubPublish.php',
'Predis\\Command\\PubSubPubsub' => $vendorDir . '/predis/predis/src/Command/PubSubPubsub.php',
'Predis\\Command\\PubSubSubscribe' => $vendorDir . '/predis/predis/src/Command/PubSubSubscribe.php',
'Predis\\Command\\PubSubSubscribeByPattern' => $vendorDir . '/predis/predis/src/Command/PubSubSubscribeByPattern.php',
'Predis\\Command\\PubSubUnsubscribe' => $vendorDir . '/predis/predis/src/Command/PubSubUnsubscribe.php',
'Predis\\Command\\PubSubUnsubscribeByPattern' => $vendorDir . '/predis/predis/src/Command/PubSubUnsubscribeByPattern.php',
'Predis\\Command\\RawCommand' => $vendorDir . '/predis/predis/src/Command/RawCommand.php',
'Predis\\Command\\ScriptCommand' => $vendorDir . '/predis/predis/src/Command/ScriptCommand.php',
'Predis\\Command\\ServerBackgroundRewriteAOF' => $vendorDir . '/predis/predis/src/Command/ServerBackgroundRewriteAOF.php',
'Predis\\Command\\ServerBackgroundSave' => $vendorDir . '/predis/predis/src/Command/ServerBackgroundSave.php',
'Predis\\Command\\ServerClient' => $vendorDir . '/predis/predis/src/Command/ServerClient.php',
'Predis\\Command\\ServerCommand' => $vendorDir . '/predis/predis/src/Command/ServerCommand.php',
'Predis\\Command\\ServerConfig' => $vendorDir . '/predis/predis/src/Command/ServerConfig.php',
'Predis\\Command\\ServerDatabaseSize' => $vendorDir . '/predis/predis/src/Command/ServerDatabaseSize.php',
'Predis\\Command\\ServerEval' => $vendorDir . '/predis/predis/src/Command/ServerEval.php',
'Predis\\Command\\ServerEvalSHA' => $vendorDir . '/predis/predis/src/Command/ServerEvalSHA.php',
'Predis\\Command\\ServerFlushAll' => $vendorDir . '/predis/predis/src/Command/ServerFlushAll.php',
'Predis\\Command\\ServerFlushDatabase' => $vendorDir . '/predis/predis/src/Command/ServerFlushDatabase.php',
'Predis\\Command\\ServerInfo' => $vendorDir . '/predis/predis/src/Command/ServerInfo.php',
'Predis\\Command\\ServerInfoV26x' => $vendorDir . '/predis/predis/src/Command/ServerInfoV26x.php',
'Predis\\Command\\ServerLastSave' => $vendorDir . '/predis/predis/src/Command/ServerLastSave.php',
'Predis\\Command\\ServerMonitor' => $vendorDir . '/predis/predis/src/Command/ServerMonitor.php',
'Predis\\Command\\ServerObject' => $vendorDir . '/predis/predis/src/Command/ServerObject.php',
'Predis\\Command\\ServerSave' => $vendorDir . '/predis/predis/src/Command/ServerSave.php',
'Predis\\Command\\ServerScript' => $vendorDir . '/predis/predis/src/Command/ServerScript.php',
'Predis\\Command\\ServerSentinel' => $vendorDir . '/predis/predis/src/Command/ServerSentinel.php',
'Predis\\Command\\ServerShutdown' => $vendorDir . '/predis/predis/src/Command/ServerShutdown.php',
'Predis\\Command\\ServerSlaveOf' => $vendorDir . '/predis/predis/src/Command/ServerSlaveOf.php',
'Predis\\Command\\ServerSlowlog' => $vendorDir . '/predis/predis/src/Command/ServerSlowlog.php',
'Predis\\Command\\ServerTime' => $vendorDir . '/predis/predis/src/Command/ServerTime.php',
'Predis\\Command\\SetAdd' => $vendorDir . '/predis/predis/src/Command/SetAdd.php',
'Predis\\Command\\SetCardinality' => $vendorDir . '/predis/predis/src/Command/SetCardinality.php',
'Predis\\Command\\SetDifference' => $vendorDir . '/predis/predis/src/Command/SetDifference.php',
'Predis\\Command\\SetDifferenceStore' => $vendorDir . '/predis/predis/src/Command/SetDifferenceStore.php',
'Predis\\Command\\SetIntersection' => $vendorDir . '/predis/predis/src/Command/SetIntersection.php',
'Predis\\Command\\SetIntersectionStore' => $vendorDir . '/predis/predis/src/Command/SetIntersectionStore.php',
'Predis\\Command\\SetIsMember' => $vendorDir . '/predis/predis/src/Command/SetIsMember.php',
'Predis\\Command\\SetMembers' => $vendorDir . '/predis/predis/src/Command/SetMembers.php',
'Predis\\Command\\SetMove' => $vendorDir . '/predis/predis/src/Command/SetMove.php',
'Predis\\Command\\SetPop' => $vendorDir . '/predis/predis/src/Command/SetPop.php',
'Predis\\Command\\SetRandomMember' => $vendorDir . '/predis/predis/src/Command/SetRandomMember.php',
'Predis\\Command\\SetRemove' => $vendorDir . '/predis/predis/src/Command/SetRemove.php',
'Predis\\Command\\SetScan' => $vendorDir . '/predis/predis/src/Command/SetScan.php',
'Predis\\Command\\SetUnion' => $vendorDir . '/predis/predis/src/Command/SetUnion.php',
'Predis\\Command\\SetUnionStore' => $vendorDir . '/predis/predis/src/Command/SetUnionStore.php',
'Predis\\Command\\StringAppend' => $vendorDir . '/predis/predis/src/Command/StringAppend.php',
'Predis\\Command\\StringBitCount' => $vendorDir . '/predis/predis/src/Command/StringBitCount.php',
'Predis\\Command\\StringBitField' => $vendorDir . '/predis/predis/src/Command/StringBitField.php',
'Predis\\Command\\StringBitOp' => $vendorDir . '/predis/predis/src/Command/StringBitOp.php',
'Predis\\Command\\StringBitPos' => $vendorDir . '/predis/predis/src/Command/StringBitPos.php',
'Predis\\Command\\StringDecrement' => $vendorDir . '/predis/predis/src/Command/StringDecrement.php',
'Predis\\Command\\StringDecrementBy' => $vendorDir . '/predis/predis/src/Command/StringDecrementBy.php',
'Predis\\Command\\StringGet' => $vendorDir . '/predis/predis/src/Command/StringGet.php',
'Predis\\Command\\StringGetBit' => $vendorDir . '/predis/predis/src/Command/StringGetBit.php',
'Predis\\Command\\StringGetMultiple' => $vendorDir . '/predis/predis/src/Command/StringGetMultiple.php',
'Predis\\Command\\StringGetRange' => $vendorDir . '/predis/predis/src/Command/StringGetRange.php',
'Predis\\Command\\StringGetSet' => $vendorDir . '/predis/predis/src/Command/StringGetSet.php',
'Predis\\Command\\StringIncrement' => $vendorDir . '/predis/predis/src/Command/StringIncrement.php',
'Predis\\Command\\StringIncrementBy' => $vendorDir . '/predis/predis/src/Command/StringIncrementBy.php',
'Predis\\Command\\StringIncrementByFloat' => $vendorDir . '/predis/predis/src/Command/StringIncrementByFloat.php',
'Predis\\Command\\StringPreciseSetExpire' => $vendorDir . '/predis/predis/src/Command/StringPreciseSetExpire.php',
'Predis\\Command\\StringSet' => $vendorDir . '/predis/predis/src/Command/StringSet.php',
'Predis\\Command\\StringSetBit' => $vendorDir . '/predis/predis/src/Command/StringSetBit.php',
'Predis\\Command\\StringSetExpire' => $vendorDir . '/predis/predis/src/Command/StringSetExpire.php',
'Predis\\Command\\StringSetMultiple' => $vendorDir . '/predis/predis/src/Command/StringSetMultiple.php',
'Predis\\Command\\StringSetMultiplePreserve' => $vendorDir . '/predis/predis/src/Command/StringSetMultiplePreserve.php',
'Predis\\Command\\StringSetPreserve' => $vendorDir . '/predis/predis/src/Command/StringSetPreserve.php',
'Predis\\Command\\StringSetRange' => $vendorDir . '/predis/predis/src/Command/StringSetRange.php',
'Predis\\Command\\StringStrlen' => $vendorDir . '/predis/predis/src/Command/StringStrlen.php',
'Predis\\Command\\StringSubstr' => $vendorDir . '/predis/predis/src/Command/StringSubstr.php',
'Predis\\Command\\TransactionDiscard' => $vendorDir . '/predis/predis/src/Command/TransactionDiscard.php',
'Predis\\Command\\TransactionExec' => $vendorDir . '/predis/predis/src/Command/TransactionExec.php',
'Predis\\Command\\TransactionMulti' => $vendorDir . '/predis/predis/src/Command/TransactionMulti.php',
'Predis\\Command\\TransactionUnwatch' => $vendorDir . '/predis/predis/src/Command/TransactionUnwatch.php',
'Predis\\Command\\TransactionWatch' => $vendorDir . '/predis/predis/src/Command/TransactionWatch.php',
'Predis\\Command\\ZSetAdd' => $vendorDir . '/predis/predis/src/Command/ZSetAdd.php',
'Predis\\Command\\ZSetCardinality' => $vendorDir . '/predis/predis/src/Command/ZSetCardinality.php',
'Predis\\Command\\ZSetCount' => $vendorDir . '/predis/predis/src/Command/ZSetCount.php',
'Predis\\Command\\ZSetIncrementBy' => $vendorDir . '/predis/predis/src/Command/ZSetIncrementBy.php',
'Predis\\Command\\ZSetIntersectionStore' => $vendorDir . '/predis/predis/src/Command/ZSetIntersectionStore.php',
'Predis\\Command\\ZSetLexCount' => $vendorDir . '/predis/predis/src/Command/ZSetLexCount.php',
'Predis\\Command\\ZSetRange' => $vendorDir . '/predis/predis/src/Command/ZSetRange.php',
'Predis\\Command\\ZSetRangeByLex' => $vendorDir . '/predis/predis/src/Command/ZSetRangeByLex.php',
'Predis\\Command\\ZSetRangeByScore' => $vendorDir . '/predis/predis/src/Command/ZSetRangeByScore.php',
'Predis\\Command\\ZSetRank' => $vendorDir . '/predis/predis/src/Command/ZSetRank.php',
'Predis\\Command\\ZSetRemove' => $vendorDir . '/predis/predis/src/Command/ZSetRemove.php',
'Predis\\Command\\ZSetRemoveRangeByLex' => $vendorDir . '/predis/predis/src/Command/ZSetRemoveRangeByLex.php',
'Predis\\Command\\ZSetRemoveRangeByRank' => $vendorDir . '/predis/predis/src/Command/ZSetRemoveRangeByRank.php',
'Predis\\Command\\ZSetRemoveRangeByScore' => $vendorDir . '/predis/predis/src/Command/ZSetRemoveRangeByScore.php',
'Predis\\Command\\ZSetReverseRange' => $vendorDir . '/predis/predis/src/Command/ZSetReverseRange.php',
'Predis\\Command\\ZSetReverseRangeByLex' => $vendorDir . '/predis/predis/src/Command/ZSetReverseRangeByLex.php',
'Predis\\Command\\ZSetReverseRangeByScore' => $vendorDir . '/predis/predis/src/Command/ZSetReverseRangeByScore.php',
'Predis\\Command\\ZSetReverseRank' => $vendorDir . '/predis/predis/src/Command/ZSetReverseRank.php',
'Predis\\Command\\ZSetScan' => $vendorDir . '/predis/predis/src/Command/ZSetScan.php',
'Predis\\Command\\ZSetScore' => $vendorDir . '/predis/predis/src/Command/ZSetScore.php',
'Predis\\Command\\ZSetUnionStore' => $vendorDir . '/predis/predis/src/Command/ZSetUnionStore.php',
'Predis\\CommunicationException' => $vendorDir . '/predis/predis/src/CommunicationException.php',
'Predis\\Configuration\\ClusterOption' => $vendorDir . '/predis/predis/src/Configuration/ClusterOption.php',
'Predis\\Configuration\\ConnectionFactoryOption' => $vendorDir . '/predis/predis/src/Configuration/ConnectionFactoryOption.php',
'Predis\\Configuration\\ExceptionsOption' => $vendorDir . '/predis/predis/src/Configuration/ExceptionsOption.php',
'Predis\\Configuration\\OptionInterface' => $vendorDir . '/predis/predis/src/Configuration/OptionInterface.php',
'Predis\\Configuration\\Options' => $vendorDir . '/predis/predis/src/Configuration/Options.php',
'Predis\\Configuration\\OptionsInterface' => $vendorDir . '/predis/predis/src/Configuration/OptionsInterface.php',
'Predis\\Configuration\\PrefixOption' => $vendorDir . '/predis/predis/src/Configuration/PrefixOption.php',
'Predis\\Configuration\\ProfileOption' => $vendorDir . '/predis/predis/src/Configuration/ProfileOption.php',
'Predis\\Configuration\\ReplicationOption' => $vendorDir . '/predis/predis/src/Configuration/ReplicationOption.php',
'Predis\\Connection\\AbstractConnection' => $vendorDir . '/predis/predis/src/Connection/AbstractConnection.php',
'Predis\\Connection\\AggregateConnectionInterface' => $vendorDir . '/predis/predis/src/Connection/AggregateConnectionInterface.php',
'Predis\\Connection\\Aggregate\\ClusterInterface' => $vendorDir . '/predis/predis/src/Connection/Aggregate/ClusterInterface.php',
'Predis\\Connection\\Aggregate\\MasterSlaveReplication' => $vendorDir . '/predis/predis/src/Connection/Aggregate/MasterSlaveReplication.php',
'Predis\\Connection\\Aggregate\\PredisCluster' => $vendorDir . '/predis/predis/src/Connection/Aggregate/PredisCluster.php',
'Predis\\Connection\\Aggregate\\RedisCluster' => $vendorDir . '/predis/predis/src/Connection/Aggregate/RedisCluster.php',
'Predis\\Connection\\Aggregate\\ReplicationInterface' => $vendorDir . '/predis/predis/src/Connection/Aggregate/ReplicationInterface.php',
'Predis\\Connection\\Aggregate\\SentinelReplication' => $vendorDir . '/predis/predis/src/Connection/Aggregate/SentinelReplication.php',
'Predis\\Connection\\CompositeConnectionInterface' => $vendorDir . '/predis/predis/src/Connection/CompositeConnectionInterface.php',
'Predis\\Connection\\CompositeStreamConnection' => $vendorDir . '/predis/predis/src/Connection/CompositeStreamConnection.php',
'Predis\\Connection\\ConnectionException' => $vendorDir . '/predis/predis/src/Connection/ConnectionException.php',
'Predis\\Connection\\ConnectionInterface' => $vendorDir . '/predis/predis/src/Connection/ConnectionInterface.php',
'Predis\\Connection\\Factory' => $vendorDir . '/predis/predis/src/Connection/Factory.php',
'Predis\\Connection\\FactoryInterface' => $vendorDir . '/predis/predis/src/Connection/FactoryInterface.php',
'Predis\\Connection\\NodeConnectionInterface' => $vendorDir . '/predis/predis/src/Connection/NodeConnectionInterface.php',
'Predis\\Connection\\Parameters' => $vendorDir . '/predis/predis/src/Connection/Parameters.php',
'Predis\\Connection\\ParametersInterface' => $vendorDir . '/predis/predis/src/Connection/ParametersInterface.php',
'Predis\\Connection\\PhpiredisSocketConnection' => $vendorDir . '/predis/predis/src/Connection/PhpiredisSocketConnection.php',
'Predis\\Connection\\PhpiredisStreamConnection' => $vendorDir . '/predis/predis/src/Connection/PhpiredisStreamConnection.php',
'Predis\\Connection\\StreamConnection' => $vendorDir . '/predis/predis/src/Connection/StreamConnection.php',
'Predis\\Connection\\WebdisConnection' => $vendorDir . '/predis/predis/src/Connection/WebdisConnection.php',
'Predis\\Monitor\\Consumer' => $vendorDir . '/predis/predis/src/Monitor/Consumer.php',
'Predis\\NotSupportedException' => $vendorDir . '/predis/predis/src/NotSupportedException.php',
'Predis\\Pipeline\\Atomic' => $vendorDir . '/predis/predis/src/Pipeline/Atomic.php',
'Predis\\Pipeline\\ConnectionErrorProof' => $vendorDir . '/predis/predis/src/Pipeline/ConnectionErrorProof.php',
'Predis\\Pipeline\\FireAndForget' => $vendorDir . '/predis/predis/src/Pipeline/FireAndForget.php',
'Predis\\Pipeline\\Pipeline' => $vendorDir . '/predis/predis/src/Pipeline/Pipeline.php',
'Predis\\PredisException' => $vendorDir . '/predis/predis/src/PredisException.php',
'Predis\\Profile\\Factory' => $vendorDir . '/predis/predis/src/Profile/Factory.php',
'Predis\\Profile\\ProfileInterface' => $vendorDir . '/predis/predis/src/Profile/ProfileInterface.php',
'Predis\\Profile\\RedisProfile' => $vendorDir . '/predis/predis/src/Profile/RedisProfile.php',
'Predis\\Profile\\RedisUnstable' => $vendorDir . '/predis/predis/src/Profile/RedisUnstable.php',
'Predis\\Profile\\RedisVersion200' => $vendorDir . '/predis/predis/src/Profile/RedisVersion200.php',
'Predis\\Profile\\RedisVersion220' => $vendorDir . '/predis/predis/src/Profile/RedisVersion220.php',
'Predis\\Profile\\RedisVersion240' => $vendorDir . '/predis/predis/src/Profile/RedisVersion240.php',
'Predis\\Profile\\RedisVersion260' => $vendorDir . '/predis/predis/src/Profile/RedisVersion260.php',
'Predis\\Profile\\RedisVersion280' => $vendorDir . '/predis/predis/src/Profile/RedisVersion280.php',
'Predis\\Profile\\RedisVersion300' => $vendorDir . '/predis/predis/src/Profile/RedisVersion300.php',
'Predis\\Profile\\RedisVersion320' => $vendorDir . '/predis/predis/src/Profile/RedisVersion320.php',
'Predis\\Protocol\\ProtocolException' => $vendorDir . '/predis/predis/src/Protocol/ProtocolException.php',
'Predis\\Protocol\\ProtocolProcessorInterface' => $vendorDir . '/predis/predis/src/Protocol/ProtocolProcessorInterface.php',
'Predis\\Protocol\\RequestSerializerInterface' => $vendorDir . '/predis/predis/src/Protocol/RequestSerializerInterface.php',
'Predis\\Protocol\\ResponseReaderInterface' => $vendorDir . '/predis/predis/src/Protocol/ResponseReaderInterface.php',
'Predis\\Protocol\\Text\\CompositeProtocolProcessor' => $vendorDir . '/predis/predis/src/Protocol/Text/CompositeProtocolProcessor.php',
'Predis\\Protocol\\Text\\Handler\\BulkResponse' => $vendorDir . '/predis/predis/src/Protocol/Text/Handler/BulkResponse.php',
'Predis\\Protocol\\Text\\Handler\\ErrorResponse' => $vendorDir . '/predis/predis/src/Protocol/Text/Handler/ErrorResponse.php',
'Predis\\Protocol\\Text\\Handler\\IntegerResponse' => $vendorDir . '/predis/predis/src/Protocol/Text/Handler/IntegerResponse.php',
'Predis\\Protocol\\Text\\Handler\\MultiBulkResponse' => $vendorDir . '/predis/predis/src/Protocol/Text/Handler/MultiBulkResponse.php',
'Predis\\Protocol\\Text\\Handler\\ResponseHandlerInterface' => $vendorDir . '/predis/predis/src/Protocol/Text/Handler/ResponseHandlerInterface.php',
'Predis\\Protocol\\Text\\Handler\\StatusResponse' => $vendorDir . '/predis/predis/src/Protocol/Text/Handler/StatusResponse.php',
'Predis\\Protocol\\Text\\Handler\\StreamableMultiBulkResponse' => $vendorDir . '/predis/predis/src/Protocol/Text/Handler/StreamableMultiBulkResponse.php',
'Predis\\Protocol\\Text\\ProtocolProcessor' => $vendorDir . '/predis/predis/src/Protocol/Text/ProtocolProcessor.php',
'Predis\\Protocol\\Text\\RequestSerializer' => $vendorDir . '/predis/predis/src/Protocol/Text/RequestSerializer.php',
'Predis\\Protocol\\Text\\ResponseReader' => $vendorDir . '/predis/predis/src/Protocol/Text/ResponseReader.php',
'Predis\\PubSub\\AbstractConsumer' => $vendorDir . '/predis/predis/src/PubSub/AbstractConsumer.php',
'Predis\\PubSub\\Consumer' => $vendorDir . '/predis/predis/src/PubSub/Consumer.php',
'Predis\\PubSub\\DispatcherLoop' => $vendorDir . '/predis/predis/src/PubSub/DispatcherLoop.php',
'Predis\\Replication\\MissingMasterException' => $vendorDir . '/predis/predis/src/Replication/MissingMasterException.php',
'Predis\\Replication\\ReplicationStrategy' => $vendorDir . '/predis/predis/src/Replication/ReplicationStrategy.php',
'Predis\\Replication\\RoleException' => $vendorDir . '/predis/predis/src/Replication/RoleException.php',
'Predis\\Response\\Error' => $vendorDir . '/predis/predis/src/Response/Error.php',
'Predis\\Response\\ErrorInterface' => $vendorDir . '/predis/predis/src/Response/ErrorInterface.php',
'Predis\\Response\\Iterator\\MultiBulk' => $vendorDir . '/predis/predis/src/Response/Iterator/MultiBulk.php',
'Predis\\Response\\Iterator\\MultiBulkIterator' => $vendorDir . '/predis/predis/src/Response/Iterator/MultiBulkIterator.php',
'Predis\\Response\\Iterator\\MultiBulkTuple' => $vendorDir . '/predis/predis/src/Response/Iterator/MultiBulkTuple.php',
'Predis\\Response\\ResponseInterface' => $vendorDir . '/predis/predis/src/Response/ResponseInterface.php',
'Predis\\Response\\ServerException' => $vendorDir . '/predis/predis/src/Response/ServerException.php',
'Predis\\Response\\Status' => $vendorDir . '/predis/predis/src/Response/Status.php',
'Predis\\Session\\Handler' => $vendorDir . '/predis/predis/src/Session/Handler.php',
'Predis\\Transaction\\AbortedMultiExecException' => $vendorDir . '/predis/predis/src/Transaction/AbortedMultiExecException.php',
'Predis\\Transaction\\MultiExec' => $vendorDir . '/predis/predis/src/Transaction/MultiExec.php',
'Predis\\Transaction\\MultiExecState' => $vendorDir . '/predis/predis/src/Transaction/MultiExecState.php',
'Prophecy\\Argument' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument.php',
'Prophecy\\Argument\\ArgumentsWildcard' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php',
'Prophecy\\Argument\\Token\\AnyValueToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php',
@@ -3491,6 +3988,41 @@ return array(
'Ramsey\\Uuid\\UuidInterface' => $vendorDir . '/ramsey/uuid/src/UuidInterface.php',
'Ramsey\\Uuid\\Validator\\GenericValidator' => $vendorDir . '/ramsey/uuid/src/Validator/GenericValidator.php',
'Ramsey\\Uuid\\Validator\\ValidatorInterface' => $vendorDir . '/ramsey/uuid/src/Validator/ValidatorInterface.php',
'Seat\\Eseye\\Access\\AccessInterface' => $vendorDir . '/eveseat/eseye/src/Access/AccessInterface.php',
'Seat\\Eseye\\Access\\CheckAccess' => $vendorDir . '/eveseat/eseye/src/Access/CheckAccess.php',
'Seat\\Eseye\\Cache\\CacheInterface' => $vendorDir . '/eveseat/eseye/src/Cache/CacheInterface.php',
'Seat\\Eseye\\Cache\\FileCache' => $vendorDir . '/eveseat/eseye/src/Cache/FileCache.php',
'Seat\\Eseye\\Cache\\HashesStrings' => $vendorDir . '/eveseat/eseye/src/Cache/HashesStrings.php',
'Seat\\Eseye\\Cache\\MemcachedCache' => $vendorDir . '/eveseat/eseye/src/Cache/MemcachedCache.php',
'Seat\\Eseye\\Cache\\NullCache' => $vendorDir . '/eveseat/eseye/src/Cache/NullCache.php',
'Seat\\Eseye\\Cache\\RedisCache' => $vendorDir . '/eveseat/eseye/src/Cache/RedisCache.php',
'Seat\\Eseye\\Checker\\Claim\\AzpChecker' => $vendorDir . '/eveseat/eseye/src/Checker/Claim/AzpChecker.php',
'Seat\\Eseye\\Checker\\Claim\\NameChecker' => $vendorDir . '/eveseat/eseye/src/Checker/Claim/NameChecker.php',
'Seat\\Eseye\\Checker\\Claim\\OwnerChecker' => $vendorDir . '/eveseat/eseye/src/Checker/Claim/OwnerChecker.php',
'Seat\\Eseye\\Checker\\Claim\\SubEveCharacterChecker' => $vendorDir . '/eveseat/eseye/src/Checker/Claim/SubEveCharacterChecker.php',
'Seat\\Eseye\\Checker\\Header\\TypeChecker' => $vendorDir . '/eveseat/eseye/src/Checker/Header/TypeChecker.php',
'Seat\\Eseye\\Configuration' => $vendorDir . '/eveseat/eseye/src/Configuration.php',
'Seat\\Eseye\\Containers\\AbstractArrayAccess' => $vendorDir . '/eveseat/eseye/src/Containers/AbstractArrayAccess.php',
'Seat\\Eseye\\Containers\\EsiAuthentication' => $vendorDir . '/eveseat/eseye/src/Containers/EsiAuthentication.php',
'Seat\\Eseye\\Containers\\EsiConfiguration' => $vendorDir . '/eveseat/eseye/src/Containers/EsiConfiguration.php',
'Seat\\Eseye\\Containers\\EsiResponse' => $vendorDir . '/eveseat/eseye/src/Containers/EsiResponse.php',
'Seat\\Eseye\\Eseye' => $vendorDir . '/eveseat/eseye/src/Eseye.php',
'Seat\\Eseye\\Exceptions\\CachePathException' => $vendorDir . '/eveseat/eseye/src/Exceptions/CachePathException.php',
'Seat\\Eseye\\Exceptions\\EsiScopeAccessDeniedException' => $vendorDir . '/eveseat/eseye/src/Exceptions/EsiScopeAccessDeniedException.php',
'Seat\\Eseye\\Exceptions\\InvalidAuthenticationException' => $vendorDir . '/eveseat/eseye/src/Exceptions/InvalidAuthenticationException.php',
'Seat\\Eseye\\Exceptions\\InvalidConfigurationException' => $vendorDir . '/eveseat/eseye/src/Exceptions/InvalidConfigurationException.php',
'Seat\\Eseye\\Exceptions\\InvalidContainerDataException' => $vendorDir . '/eveseat/eseye/src/Exceptions/InvalidContainerDataException.php',
'Seat\\Eseye\\Exceptions\\InvalidEsiSpecException' => $vendorDir . '/eveseat/eseye/src/Exceptions/InvalidEsiSpecException.php',
'Seat\\Eseye\\Exceptions\\RequestFailedException' => $vendorDir . '/eveseat/eseye/src/Exceptions/RequestFailedException.php',
'Seat\\Eseye\\Exceptions\\UriDataMissingException' => $vendorDir . '/eveseat/eseye/src/Exceptions/UriDataMissingException.php',
'Seat\\Eseye\\Fetchers\\FetcherInterface' => $vendorDir . '/eveseat/eseye/src/Fetchers/FetcherInterface.php',
'Seat\\Eseye\\Fetchers\\GuzzleFetcher' => $vendorDir . '/eveseat/eseye/src/Fetchers/GuzzleFetcher.php',
'Seat\\Eseye\\Log\\FileLogger' => $vendorDir . '/eveseat/eseye/src/Log/FileLogger.php',
'Seat\\Eseye\\Log\\LogInterface' => $vendorDir . '/eveseat/eseye/src/Log/LogInterface.php',
'Seat\\Eseye\\Log\\NullLogger' => $vendorDir . '/eveseat/eseye/src/Log/NullLogger.php',
'Seat\\Eseye\\Log\\RotatingFileLogger' => $vendorDir . '/eveseat/eseye/src/Log/RotatingFileLogger.php',
'Seat\\Eseye\\Traits\\ConstructsContainers' => $vendorDir . '/eveseat/eseye/src/Traits/ConstructsContainers.php',
'Seat\\Eseye\\Traits\\ValidatesContainers' => $vendorDir . '/eveseat/eseye/src/Traits/ValidatesContainers.php',
'SebastianBergmann\\CodeCoverage\\CodeCoverage' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage.php',
'SebastianBergmann\\CodeCoverage\\CoveredCodeNotExecutedException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/CoveredCodeNotExecutedException.php',
'SebastianBergmann\\CodeCoverage\\Driver\\Driver' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/Driver.php',

View File

@@ -33,4 +33,5 @@ return array(
'0d8253363903f0ac7b0978dcde4e28a0' => $vendorDir . '/beyondcode/laravel-dump-server/helpers.php',
'17d016dc52a631c1e74d2eb8fdd57342' => $vendorDir . '/laravel/helpers/src/helpers.php',
'f18cc91337d49233e5754e93f3ed9ec3' => $vendorDir . '/laravelcollective/html/src/helpers.php',
'664e151c91315b3715336cbec9a6600a' => $vendorDir . '/eveseat/eseye/src/Helpers/helpers.php',
);

View File

@@ -38,6 +38,7 @@ return array(
'Symfony\\Component\\ErrorHandler\\' => array($vendorDir . '/symfony/error-handler'),
'Symfony\\Component\\CssSelector\\' => array($vendorDir . '/symfony/css-selector'),
'Symfony\\Component\\Console\\' => array($vendorDir . '/symfony/console'),
'Seat\\Eseye\\' => array($vendorDir . '/eveseat/eseye/src'),
'Ramsey\\Uuid\\' => array($vendorDir . '/ramsey/uuid/src'),
'Ramsey\\Collection\\' => array($vendorDir . '/ramsey/collection/src'),
'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'),
@@ -46,6 +47,7 @@ return array(
'Psr\\EventDispatcher\\' => array($vendorDir . '/psr/event-dispatcher/src'),
'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src/Prophecy'),
'Predis\\' => array($vendorDir . '/predis/predis/src'),
'PhpOption\\' => array($vendorDir . '/phpoption/phpoption/src/PhpOption'),
'Opis\\Closure\\' => array($vendorDir . '/opis/closure/src'),
'NunoMaduro\\Collision\\' => array($vendorDir . '/nunomaduro/collision/src'),
@@ -58,6 +60,12 @@ return array(
'Laravel\\Socialite\\' => array($vendorDir . '/laravel/socialite/src'),
'Laravel\\Horizon\\' => array($vendorDir . '/laravel/horizon/src'),
'Khill\\Lavacharts\\' => array($vendorDir . '/khill/lavacharts/src'),
'Jose\\Easy\\' => array($vendorDir . '/web-token/jwt-easy'),
'Jose\\Component\\Signature\\Algorithm\\' => array($vendorDir . '/web-token/jwt-signature-algorithm-rsa', $vendorDir . '/web-token/jwt-signature-algorithm-hmac', $vendorDir . '/web-token/jwt-signature-algorithm-ecdsa'),
'Jose\\Component\\Signature\\' => array($vendorDir . '/web-token/jwt-signature'),
'Jose\\Component\\Encryption\\' => array($vendorDir . '/web-token/jwt-encryption'),
'Jose\\Component\\Core\\' => array($vendorDir . '/web-token/jwt-core'),
'Jose\\Component\\Checker\\' => array($vendorDir . '/web-token/jwt-checker'),
'Illuminate\\Foundation\\Auth\\' => array($vendorDir . '/laravel/ui/auth-backend'),
'Illuminate\\' => array($vendorDir . '/laravel/framework/src/Illuminate'),
'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
@@ -66,6 +74,7 @@ return array(
'Fideloper\\Proxy\\' => array($vendorDir . '/fideloper/proxy/src'),
'Faker\\' => array($vendorDir . '/fzaninotto/faker/src/Faker'),
'Facade\\IgnitionContracts\\' => array($vendorDir . '/facade/ignition-contracts/src'),
'FG\\' => array($vendorDir . '/fgrosse/phpasn1/lib'),
'Egulias\\EmailValidator\\' => array($vendorDir . '/egulias/email-validator/src'),
'Dotenv\\' => array($vendorDir . '/vlucas/phpdotenv/src'),
'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
@@ -78,5 +87,6 @@ return array(
'Cake\\Chronos\\' => array($vendorDir . '/cakephp/chronos/src'),
'Brick\\Math\\' => array($vendorDir . '/brick/math/src'),
'BeyondCode\\DumpServer\\' => array($vendorDir . '/beyondcode/laravel-dump-server/src'),
'Base64Url\\' => array($vendorDir . '/spomky-labs/base64url/src'),
'App\\' => array($baseDir . '/app'),
);

View File

@@ -34,6 +34,7 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'0d8253363903f0ac7b0978dcde4e28a0' => __DIR__ . '/..' . '/beyondcode/laravel-dump-server/helpers.php',
'17d016dc52a631c1e74d2eb8fdd57342' => __DIR__ . '/..' . '/laravel/helpers/src/helpers.php',
'f18cc91337d49233e5754e93f3ed9ec3' => __DIR__ . '/..' . '/laravelcollective/html/src/helpers.php',
'664e151c91315b3715336cbec9a6600a' => __DIR__ . '/..' . '/eveseat/eseye/src/Helpers/helpers.php',
);
public static $prefixLengthsPsr4 = array (
@@ -83,6 +84,7 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'Symfony\\Component\\ErrorHandler\\' => 31,
'Symfony\\Component\\CssSelector\\' => 30,
'Symfony\\Component\\Console\\' => 26,
'Seat\\Eseye\\' => 11,
),
'R' =>
array (
@@ -97,6 +99,7 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'Psr\\EventDispatcher\\' => 20,
'Psr\\Container\\' => 14,
'Prophecy\\' => 9,
'Predis\\' => 7,
'PhpOption\\' => 10,
),
'O' =>
@@ -125,6 +128,15 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
array (
'Khill\\Lavacharts\\' => 17,
),
'J' =>
array (
'Jose\\Easy\\' => 10,
'Jose\\Component\\Signature\\Algorithm\\' => 35,
'Jose\\Component\\Signature\\' => 25,
'Jose\\Component\\Encryption\\' => 26,
'Jose\\Component\\Core\\' => 20,
'Jose\\Component\\Checker\\' => 23,
),
'I' =>
array (
'Illuminate\\Foundation\\Auth\\' => 27,
@@ -141,6 +153,7 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'Fideloper\\Proxy\\' => 16,
'Faker\\' => 6,
'Facade\\IgnitionContracts\\' => 25,
'FG\\' => 3,
),
'E' =>
array (
@@ -165,6 +178,7 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
array (
'Brick\\Math\\' => 11,
'BeyondCode\\DumpServer\\' => 22,
'Base64Url\\' => 10,
),
'A' =>
array (
@@ -303,6 +317,10 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
array (
0 => __DIR__ . '/..' . '/symfony/console',
),
'Seat\\Eseye\\' =>
array (
0 => __DIR__ . '/..' . '/eveseat/eseye/src',
),
'Ramsey\\Uuid\\' =>
array (
0 => __DIR__ . '/..' . '/ramsey/uuid/src',
@@ -335,6 +353,10 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
array (
0 => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy',
),
'Predis\\' =>
array (
0 => __DIR__ . '/..' . '/predis/predis/src',
),
'PhpOption\\' =>
array (
0 => __DIR__ . '/..' . '/phpoption/phpoption/src/PhpOption',
@@ -383,6 +405,32 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
array (
0 => __DIR__ . '/..' . '/khill/lavacharts/src',
),
'Jose\\Easy\\' =>
array (
0 => __DIR__ . '/..' . '/web-token/jwt-easy',
),
'Jose\\Component\\Signature\\Algorithm\\' =>
array (
0 => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa',
1 => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-hmac',
2 => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-ecdsa',
),
'Jose\\Component\\Signature\\' =>
array (
0 => __DIR__ . '/..' . '/web-token/jwt-signature',
),
'Jose\\Component\\Encryption\\' =>
array (
0 => __DIR__ . '/..' . '/web-token/jwt-encryption',
),
'Jose\\Component\\Core\\' =>
array (
0 => __DIR__ . '/..' . '/web-token/jwt-core',
),
'Jose\\Component\\Checker\\' =>
array (
0 => __DIR__ . '/..' . '/web-token/jwt-checker',
),
'Illuminate\\Foundation\\Auth\\' =>
array (
0 => __DIR__ . '/..' . '/laravel/ui/auth-backend',
@@ -415,6 +463,10 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
array (
0 => __DIR__ . '/..' . '/facade/ignition-contracts/src',
),
'FG\\' =>
array (
0 => __DIR__ . '/..' . '/fgrosse/phpasn1/lib',
),
'Egulias\\EmailValidator\\' =>
array (
0 => __DIR__ . '/..' . '/egulias/email-validator/src',
@@ -463,6 +515,10 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
array (
0 => __DIR__ . '/..' . '/beyondcode/laravel-dump-server/src',
),
'Base64Url\\' =>
array (
0 => __DIR__ . '/..' . '/spomky-labs/base64url/src',
),
'App\\' =>
array (
0 => __DIR__ . '/../..' . '/app',
@@ -639,6 +695,7 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'App\\Traits\\EveOAuth' => __DIR__ . '/../..' . '/app/Traits/EveOAuth.php',
'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
'AvailableUserPermissions' => __DIR__ . '/../..' . '/database/seeds/AvailableUserPermissions.php',
'Base64Url\\Base64Url' => __DIR__ . '/..' . '/spomky-labs/base64url/src/Base64Url.php',
'BeyondCode\\DumpServer\\DumpServerCommand' => __DIR__ . '/..' . '/beyondcode/laravel-dump-server/src/DumpServerCommand.php',
'BeyondCode\\DumpServer\\DumpServerServiceProvider' => __DIR__ . '/..' . '/beyondcode/laravel-dump-server/src/DumpServerServiceProvider.php',
'BeyondCode\\DumpServer\\Dumper' => __DIR__ . '/..' . '/beyondcode/laravel-dump-server/src/Dumper.php',
@@ -938,6 +995,60 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'Egulias\\EmailValidator\\Warning\\QuotedString' => __DIR__ . '/..' . '/egulias/email-validator/src/Warning/QuotedString.php',
'Egulias\\EmailValidator\\Warning\\TLD' => __DIR__ . '/..' . '/egulias/email-validator/src/Warning/TLD.php',
'Egulias\\EmailValidator\\Warning\\Warning' => __DIR__ . '/..' . '/egulias/email-validator/src/Warning/Warning.php',
'FG\\ASN1\\ASNObject' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/ASNObject.php',
'FG\\ASN1\\AbstractString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/AbstractString.php',
'FG\\ASN1\\AbstractTime' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/AbstractTime.php',
'FG\\ASN1\\Base128' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Base128.php',
'FG\\ASN1\\Composite\\AttributeTypeAndValue' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Composite/AttributeTypeAndValue.php',
'FG\\ASN1\\Composite\\RDNString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Composite/RDNString.php',
'FG\\ASN1\\Composite\\RelativeDistinguishedName' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Composite/RelativeDistinguishedName.php',
'FG\\ASN1\\Construct' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Construct.php',
'FG\\ASN1\\Exception\\NotImplementedException' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Exception/NotImplementedException.php',
'FG\\ASN1\\Exception\\ParserException' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Exception/ParserException.php',
'FG\\ASN1\\ExplicitlyTaggedObject' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/ExplicitlyTaggedObject.php',
'FG\\ASN1\\Identifier' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Identifier.php',
'FG\\ASN1\\OID' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/OID.php',
'FG\\ASN1\\Parsable' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Parsable.php',
'FG\\ASN1\\TemplateParser' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/TemplateParser.php',
'FG\\ASN1\\Universal\\BMPString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/BMPString.php',
'FG\\ASN1\\Universal\\BitString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/BitString.php',
'FG\\ASN1\\Universal\\Boolean' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/Boolean.php',
'FG\\ASN1\\Universal\\CharacterString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/CharacterString.php',
'FG\\ASN1\\Universal\\Enumerated' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/Enumerated.php',
'FG\\ASN1\\Universal\\GeneralString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/GeneralString.php',
'FG\\ASN1\\Universal\\GeneralizedTime' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/GeneralizedTime.php',
'FG\\ASN1\\Universal\\GraphicString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/GraphicString.php',
'FG\\ASN1\\Universal\\IA5String' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/IA5String.php',
'FG\\ASN1\\Universal\\Integer' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/Integer.php',
'FG\\ASN1\\Universal\\NullObject' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/NullObject.php',
'FG\\ASN1\\Universal\\NumericString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/NumericString.php',
'FG\\ASN1\\Universal\\ObjectDescriptor' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/ObjectDescriptor.php',
'FG\\ASN1\\Universal\\ObjectIdentifier' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/ObjectIdentifier.php',
'FG\\ASN1\\Universal\\OctetString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/OctetString.php',
'FG\\ASN1\\Universal\\PrintableString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/PrintableString.php',
'FG\\ASN1\\Universal\\RelativeObjectIdentifier' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/RelativeObjectIdentifier.php',
'FG\\ASN1\\Universal\\Sequence' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/Sequence.php',
'FG\\ASN1\\Universal\\Set' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/Set.php',
'FG\\ASN1\\Universal\\T61String' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/T61String.php',
'FG\\ASN1\\Universal\\UTCTime' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/UTCTime.php',
'FG\\ASN1\\Universal\\UTF8String' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/UTF8String.php',
'FG\\ASN1\\Universal\\UniversalString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/UniversalString.php',
'FG\\ASN1\\Universal\\VisibleString' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/Universal/VisibleString.php',
'FG\\ASN1\\UnknownConstructedObject' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/UnknownConstructedObject.php',
'FG\\ASN1\\UnknownObject' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/ASN1/UnknownObject.php',
'FG\\Utility\\BigInteger' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/Utility/BigInteger.php',
'FG\\Utility\\BigIntegerBcmath' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/Utility/BigIntegerBcmath.php',
'FG\\Utility\\BigIntegerGmp' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/Utility/BigIntegerGmp.php',
'FG\\X509\\AlgorithmIdentifier' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/AlgorithmIdentifier.php',
'FG\\X509\\CSR\\Attributes' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/CSR/Attributes.php',
'FG\\X509\\CSR\\CSR' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/CSR/CSR.php',
'FG\\X509\\CertificateExtensions' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/CertificateExtensions.php',
'FG\\X509\\CertificateSubject' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/CertificateSubject.php',
'FG\\X509\\PrivateKey' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/PrivateKey.php',
'FG\\X509\\PublicKey' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/PublicKey.php',
'FG\\X509\\SAN\\DNSName' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/SAN/DNSName.php',
'FG\\X509\\SAN\\IPAddress' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/SAN/IPAddress.php',
'FG\\X509\\SAN\\SubjectAlternativeNames' => __DIR__ . '/..' . '/fgrosse/phpasn1/lib/X509/SAN/SubjectAlternativeNames.php',
'Facade\\IgnitionContracts\\BaseSolution' => __DIR__ . '/..' . '/facade/ignition-contracts/src/BaseSolution.php',
'Facade\\IgnitionContracts\\HasSolutionsForThrowable' => __DIR__ . '/..' . '/facade/ignition-contracts/src/HasSolutionsForThrowable.php',
'Facade\\IgnitionContracts\\ProvidesSolution' => __DIR__ . '/..' . '/facade/ignition-contracts/src/ProvidesSolution.php',
@@ -2424,6 +2535,177 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'Illuminate\\View\\ViewFinderInterface' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/View/ViewFinderInterface.php',
'Illuminate\\View\\ViewName' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/View/ViewName.php',
'Illuminate\\View\\ViewServiceProvider' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/View/ViewServiceProvider.php',
'Jose\\Component\\Checker\\AlgorithmChecker' => __DIR__ . '/..' . '/web-token/jwt-checker/AlgorithmChecker.php',
'Jose\\Component\\Checker\\AudienceChecker' => __DIR__ . '/..' . '/web-token/jwt-checker/AudienceChecker.php',
'Jose\\Component\\Checker\\ClaimChecker' => __DIR__ . '/..' . '/web-token/jwt-checker/ClaimChecker.php',
'Jose\\Component\\Checker\\ClaimCheckerManager' => __DIR__ . '/..' . '/web-token/jwt-checker/ClaimCheckerManager.php',
'Jose\\Component\\Checker\\ClaimCheckerManagerFactory' => __DIR__ . '/..' . '/web-token/jwt-checker/ClaimCheckerManagerFactory.php',
'Jose\\Component\\Checker\\ClaimExceptionInterface' => __DIR__ . '/..' . '/web-token/jwt-checker/ClaimExceptionInterface.php',
'Jose\\Component\\Checker\\ExpirationTimeChecker' => __DIR__ . '/..' . '/web-token/jwt-checker/ExpirationTimeChecker.php',
'Jose\\Component\\Checker\\HeaderChecker' => __DIR__ . '/..' . '/web-token/jwt-checker/HeaderChecker.php',
'Jose\\Component\\Checker\\HeaderCheckerManager' => __DIR__ . '/..' . '/web-token/jwt-checker/HeaderCheckerManager.php',
'Jose\\Component\\Checker\\HeaderCheckerManagerFactory' => __DIR__ . '/..' . '/web-token/jwt-checker/HeaderCheckerManagerFactory.php',
'Jose\\Component\\Checker\\InvalidClaimException' => __DIR__ . '/..' . '/web-token/jwt-checker/InvalidClaimException.php',
'Jose\\Component\\Checker\\InvalidHeaderException' => __DIR__ . '/..' . '/web-token/jwt-checker/InvalidHeaderException.php',
'Jose\\Component\\Checker\\IssuedAtChecker' => __DIR__ . '/..' . '/web-token/jwt-checker/IssuedAtChecker.php',
'Jose\\Component\\Checker\\IssuerChecker' => __DIR__ . '/..' . '/web-token/jwt-checker/IssuerChecker.php',
'Jose\\Component\\Checker\\MissingMandatoryClaimException' => __DIR__ . '/..' . '/web-token/jwt-checker/MissingMandatoryClaimException.php',
'Jose\\Component\\Checker\\MissingMandatoryHeaderParameterException' => __DIR__ . '/..' . '/web-token/jwt-checker/MissingMandatoryHeaderParameterException.php',
'Jose\\Component\\Checker\\NotBeforeChecker' => __DIR__ . '/..' . '/web-token/jwt-checker/NotBeforeChecker.php',
'Jose\\Component\\Checker\\Tests\\AlgorithmHeaderCheckerTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/AlgorithmHeaderCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\AudienceClaimCheckerTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/AudienceClaimCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\AudienceHeaderCheckerTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/AudienceHeaderCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\ClaimCheckerManagerFactoryTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/ClaimCheckerManagerFactoryTest.php',
'Jose\\Component\\Checker\\Tests\\ClaimCheckerManagerTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/ClaimCheckerManagerTest.php',
'Jose\\Component\\Checker\\Tests\\ExpirationTimeClaimCheckerTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/ExpirationTimeClaimCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\HeaderCheckerManagerFactoryTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/HeaderCheckerManagerFactoryTest.php',
'Jose\\Component\\Checker\\Tests\\IssuedAtClaimCheckerTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/IssuedAtClaimCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\NotBeforeClaimCheckerTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/NotBeforeClaimCheckerTest.php',
'Jose\\Component\\Checker\\Tests\\Stub\\OtherToken' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/Stub/OtherToken.php',
'Jose\\Component\\Checker\\Tests\\Stub\\Token' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/Stub/Token.php',
'Jose\\Component\\Checker\\Tests\\Stub\\TokenSupport' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/Stub/TokenSupport.php',
'Jose\\Component\\Checker\\Tests\\UnencodedPayloadHeaderCheckerTest' => __DIR__ . '/..' . '/web-token/jwt-checker/Tests/UnencodedPayloadHeaderCheckerTest.php',
'Jose\\Component\\Checker\\TokenTypeSupport' => __DIR__ . '/..' . '/web-token/jwt-checker/TokenTypeSupport.php',
'Jose\\Component\\Checker\\UnencodedPayloadChecker' => __DIR__ . '/..' . '/web-token/jwt-checker/UnencodedPayloadChecker.php',
'Jose\\Component\\Core\\Algorithm' => __DIR__ . '/..' . '/web-token/jwt-core/Algorithm.php',
'Jose\\Component\\Core\\AlgorithmManager' => __DIR__ . '/..' . '/web-token/jwt-core/AlgorithmManager.php',
'Jose\\Component\\Core\\AlgorithmManagerFactory' => __DIR__ . '/..' . '/web-token/jwt-core/AlgorithmManagerFactory.php',
'Jose\\Component\\Core\\JWK' => __DIR__ . '/..' . '/web-token/jwt-core/JWK.php',
'Jose\\Component\\Core\\JWKSet' => __DIR__ . '/..' . '/web-token/jwt-core/JWKSet.php',
'Jose\\Component\\Core\\JWT' => __DIR__ . '/..' . '/web-token/jwt-core/JWT.php',
'Jose\\Component\\Core\\Tests\\AlgorithmManagerFactoryTest' => __DIR__ . '/..' . '/web-token/jwt-core/Tests/AlgorithmManagerFactoryTest.php',
'Jose\\Component\\Core\\Tests\\FooAlgorithm' => __DIR__ . '/..' . '/web-token/jwt-core/Tests/FooAlgorithm.php',
'Jose\\Component\\Core\\Tests\\JWKSetTest' => __DIR__ . '/..' . '/web-token/jwt-core/Tests/JWKSetTest.php',
'Jose\\Component\\Core\\Tests\\JWKTest' => __DIR__ . '/..' . '/web-token/jwt-core/Tests/JWKTest.php',
'Jose\\Component\\Core\\Tests\\JsonConverterTest' => __DIR__ . '/..' . '/web-token/jwt-core/Tests/JsonConverterTest.php',
'Jose\\Component\\Core\\Util\\BigInteger' => __DIR__ . '/..' . '/web-token/jwt-core/Util/BigInteger.php',
'Jose\\Component\\Core\\Util\\ECKey' => __DIR__ . '/..' . '/web-token/jwt-core/Util/ECKey.php',
'Jose\\Component\\Core\\Util\\ECSignature' => __DIR__ . '/..' . '/web-token/jwt-core/Util/ECSignature.php',
'Jose\\Component\\Core\\Util\\Hash' => __DIR__ . '/..' . '/web-token/jwt-core/Util/Hash.php',
'Jose\\Component\\Core\\Util\\JsonConverter' => __DIR__ . '/..' . '/web-token/jwt-core/Util/JsonConverter.php',
'Jose\\Component\\Core\\Util\\KeyChecker' => __DIR__ . '/..' . '/web-token/jwt-core/Util/KeyChecker.php',
'Jose\\Component\\Core\\Util\\RSAKey' => __DIR__ . '/..' . '/web-token/jwt-core/Util/RSAKey.php',
'Jose\\Component\\Encryption\\Algorithm\\ContentEncryptionAlgorithm' => __DIR__ . '/..' . '/web-token/jwt-encryption/Algorithm/ContentEncryptionAlgorithm.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryptionAlgorithm' => __DIR__ . '/..' . '/web-token/jwt-encryption/Algorithm/KeyEncryptionAlgorithm.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\DirectEncryption' => __DIR__ . '/..' . '/web-token/jwt-encryption/Algorithm/KeyEncryption/DirectEncryption.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\KeyAgreement' => __DIR__ . '/..' . '/web-token/jwt-encryption/Algorithm/KeyEncryption/KeyAgreement.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\KeyAgreementWithKeyWrapping' => __DIR__ . '/..' . '/web-token/jwt-encryption/Algorithm/KeyEncryption/KeyAgreementWithKeyWrapping.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\KeyEncryption' => __DIR__ . '/..' . '/web-token/jwt-encryption/Algorithm/KeyEncryption/KeyEncryption.php',
'Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\KeyWrapping' => __DIR__ . '/..' . '/web-token/jwt-encryption/Algorithm/KeyEncryption/KeyWrapping.php',
'Jose\\Component\\Encryption\\Compression\\CompressionMethod' => __DIR__ . '/..' . '/web-token/jwt-encryption/Compression/CompressionMethod.php',
'Jose\\Component\\Encryption\\Compression\\CompressionMethodManager' => __DIR__ . '/..' . '/web-token/jwt-encryption/Compression/CompressionMethodManager.php',
'Jose\\Component\\Encryption\\Compression\\CompressionMethodManagerFactory' => __DIR__ . '/..' . '/web-token/jwt-encryption/Compression/CompressionMethodManagerFactory.php',
'Jose\\Component\\Encryption\\Compression\\Deflate' => __DIR__ . '/..' . '/web-token/jwt-encryption/Compression/Deflate.php',
'Jose\\Component\\Encryption\\JWE' => __DIR__ . '/..' . '/web-token/jwt-encryption/JWE.php',
'Jose\\Component\\Encryption\\JWEBuilder' => __DIR__ . '/..' . '/web-token/jwt-encryption/JWEBuilder.php',
'Jose\\Component\\Encryption\\JWEBuilderFactory' => __DIR__ . '/..' . '/web-token/jwt-encryption/JWEBuilderFactory.php',
'Jose\\Component\\Encryption\\JWEDecrypter' => __DIR__ . '/..' . '/web-token/jwt-encryption/JWEDecrypter.php',
'Jose\\Component\\Encryption\\JWEDecrypterFactory' => __DIR__ . '/..' . '/web-token/jwt-encryption/JWEDecrypterFactory.php',
'Jose\\Component\\Encryption\\JWELoader' => __DIR__ . '/..' . '/web-token/jwt-encryption/JWELoader.php',
'Jose\\Component\\Encryption\\JWELoaderFactory' => __DIR__ . '/..' . '/web-token/jwt-encryption/JWELoaderFactory.php',
'Jose\\Component\\Encryption\\JWETokenSupport' => __DIR__ . '/..' . '/web-token/jwt-encryption/JWETokenSupport.php',
'Jose\\Component\\Encryption\\Recipient' => __DIR__ . '/..' . '/web-token/jwt-encryption/Recipient.php',
'Jose\\Component\\Encryption\\Serializer\\CompactSerializer' => __DIR__ . '/..' . '/web-token/jwt-encryption/Serializer/CompactSerializer.php',
'Jose\\Component\\Encryption\\Serializer\\JSONFlattenedSerializer' => __DIR__ . '/..' . '/web-token/jwt-encryption/Serializer/JSONFlattenedSerializer.php',
'Jose\\Component\\Encryption\\Serializer\\JSONGeneralSerializer' => __DIR__ . '/..' . '/web-token/jwt-encryption/Serializer/JSONGeneralSerializer.php',
'Jose\\Component\\Encryption\\Serializer\\JWESerializer' => __DIR__ . '/..' . '/web-token/jwt-encryption/Serializer/JWESerializer.php',
'Jose\\Component\\Encryption\\Serializer\\JWESerializerManager' => __DIR__ . '/..' . '/web-token/jwt-encryption/Serializer/JWESerializerManager.php',
'Jose\\Component\\Encryption\\Serializer\\JWESerializerManagerFactory' => __DIR__ . '/..' . '/web-token/jwt-encryption/Serializer/JWESerializerManagerFactory.php',
'Jose\\Component\\Encryption\\Tests\\CompressionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/CompressionTest.php',
'Jose\\Component\\Encryption\\Tests\\ECDHESWithX25519EncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/ECDHESWithX25519EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\EncrypterTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/EncrypterTest.php',
'Jose\\Component\\Encryption\\Tests\\EncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\InvalidCurveAttackTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/InvalidCurveAttackTest.php',
'Jose\\Component\\Encryption\\Tests\\JWEFlattenedTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/JWEFlattenedTest.php',
'Jose\\Component\\Encryption\\Tests\\JWELoaderTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/JWELoaderTest.php',
'Jose\\Component\\Encryption\\Tests\\JWESplitTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/JWESplitTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionProtectedContentOnlyTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionProtectedContentOnlyTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionWithAdditionalAuthenticatedDataTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionWithAdditionalAuthenticatedDataTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionWithCompressionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionWithCompressionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A128KWAndA128GCMEncryptionWithSpecificProtectedHeaderValuesTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/A128KWAndA128GCMEncryptionWithSpecificProtectedHeaderValuesTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\A256GCMKWAndA128CBC_HS256EncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/A256GCMKWAndA128CBC_HS256EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\DirAndA128GCMEncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/DirAndA128GCMEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\ECDH_ES_A128KWAndA128GCMEncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/ECDH_ES_A128KWAndA128GCMEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\ECDH_ES_AndA128CBC_HS256EncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/ECDH_ES_AndA128CBC_HS256EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\MultipleRecipientEncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/MultipleRecipientEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\PBES2_HS512_A256KWAndA128CBC_HS256EncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/PBES2_HS512_A256KWAndA128CBC_HS256EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\RSA1_5AndA128CBC_HS256EncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/RSA1_5AndA128CBC_HS256EncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RFC7520\\RSA_OAEPAndA256GCMEncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RFC7520/RSA_OAEPAndA256GCMEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RSAEncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RSAEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RSAKeyEncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RSAKeyEncryptionTest.php',
'Jose\\Component\\Encryption\\Tests\\RSAKeyWithoutAllPrimesTest' => __DIR__ . '/..' . '/web-token/jwt-encryption/Tests/RSAKeyWithoutAllPrimesTest.php',
'Jose\\Component\\Signature\\Algorithm\\ECDSA' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-ecdsa/ECDSA.php',
'Jose\\Component\\Signature\\Algorithm\\ES256' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-ecdsa/ES256.php',
'Jose\\Component\\Signature\\Algorithm\\ES384' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-ecdsa/ES384.php',
'Jose\\Component\\Signature\\Algorithm\\ES512' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-ecdsa/ES512.php',
'Jose\\Component\\Signature\\Algorithm\\HMAC' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-hmac/HMAC.php',
'Jose\\Component\\Signature\\Algorithm\\HS256' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-hmac/HS256.php',
'Jose\\Component\\Signature\\Algorithm\\HS384' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-hmac/HS384.php',
'Jose\\Component\\Signature\\Algorithm\\HS512' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-hmac/HS512.php',
'Jose\\Component\\Signature\\Algorithm\\MacAlgorithm' => __DIR__ . '/..' . '/web-token/jwt-signature/Algorithm/MacAlgorithm.php',
'Jose\\Component\\Signature\\Algorithm\\PS256' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/PS256.php',
'Jose\\Component\\Signature\\Algorithm\\PS384' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/PS384.php',
'Jose\\Component\\Signature\\Algorithm\\PS512' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/PS512.php',
'Jose\\Component\\Signature\\Algorithm\\RS256' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/RS256.php',
'Jose\\Component\\Signature\\Algorithm\\RS384' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/RS384.php',
'Jose\\Component\\Signature\\Algorithm\\RS512' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/RS512.php',
'Jose\\Component\\Signature\\Algorithm\\RSA' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/RSA.php',
'Jose\\Component\\Signature\\Algorithm\\RSAPKCS1' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/RSAPKCS1.php',
'Jose\\Component\\Signature\\Algorithm\\RSAPSS' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/RSAPSS.php',
'Jose\\Component\\Signature\\Algorithm\\SignatureAlgorithm' => __DIR__ . '/..' . '/web-token/jwt-signature/Algorithm/SignatureAlgorithm.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\ECDSAFromRFC6979Test' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-ecdsa/Tests/ECDSAFromRFC6979Test.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\ECDSAFromRFC7520Test' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-ecdsa/Tests/ECDSAFromRFC7520Test.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\ECDSASignatureTest' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-ecdsa/Tests/ECDSASignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\HMACFromRFC7520Test' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-hmac/Tests/HMACFromRFC7520Test.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\HMACSignatureTest' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-hmac/Tests/HMACSignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\RSA15SignatureTest' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/Tests/RSA15SignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\RSAKeyWithoutAllPrimesTest' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/Tests/RSAKeyWithoutAllPrimesTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\RSAPSSSignatureTest' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/Tests/RSAPSSSignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Tests\\RSASignatureTest' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/Tests/RSASignatureTest.php',
'Jose\\Component\\Signature\\Algorithm\\Util\\RSA' => __DIR__ . '/..' . '/web-token/jwt-signature-algorithm-rsa/Util/RSA.php',
'Jose\\Component\\Signature\\JWS' => __DIR__ . '/..' . '/web-token/jwt-signature/JWS.php',
'Jose\\Component\\Signature\\JWSBuilder' => __DIR__ . '/..' . '/web-token/jwt-signature/JWSBuilder.php',
'Jose\\Component\\Signature\\JWSBuilderFactory' => __DIR__ . '/..' . '/web-token/jwt-signature/JWSBuilderFactory.php',
'Jose\\Component\\Signature\\JWSLoader' => __DIR__ . '/..' . '/web-token/jwt-signature/JWSLoader.php',
'Jose\\Component\\Signature\\JWSLoaderFactory' => __DIR__ . '/..' . '/web-token/jwt-signature/JWSLoaderFactory.php',
'Jose\\Component\\Signature\\JWSTokenSupport' => __DIR__ . '/..' . '/web-token/jwt-signature/JWSTokenSupport.php',
'Jose\\Component\\Signature\\JWSVerifier' => __DIR__ . '/..' . '/web-token/jwt-signature/JWSVerifier.php',
'Jose\\Component\\Signature\\JWSVerifierFactory' => __DIR__ . '/..' . '/web-token/jwt-signature/JWSVerifierFactory.php',
'Jose\\Component\\Signature\\Serializer\\CompactSerializer' => __DIR__ . '/..' . '/web-token/jwt-signature/Serializer/CompactSerializer.php',
'Jose\\Component\\Signature\\Serializer\\JSONFlattenedSerializer' => __DIR__ . '/..' . '/web-token/jwt-signature/Serializer/JSONFlattenedSerializer.php',
'Jose\\Component\\Signature\\Serializer\\JSONGeneralSerializer' => __DIR__ . '/..' . '/web-token/jwt-signature/Serializer/JSONGeneralSerializer.php',
'Jose\\Component\\Signature\\Serializer\\JWSSerializer' => __DIR__ . '/..' . '/web-token/jwt-signature/Serializer/JWSSerializer.php',
'Jose\\Component\\Signature\\Serializer\\JWSSerializerManager' => __DIR__ . '/..' . '/web-token/jwt-signature/Serializer/JWSSerializerManager.php',
'Jose\\Component\\Signature\\Serializer\\JWSSerializerManagerFactory' => __DIR__ . '/..' . '/web-token/jwt-signature/Serializer/JWSSerializerManagerFactory.php',
'Jose\\Component\\Signature\\Serializer\\Serializer' => __DIR__ . '/..' . '/web-token/jwt-signature/Serializer/Serializer.php',
'Jose\\Component\\Signature\\Signature' => __DIR__ . '/..' . '/web-token/jwt-signature/Signature.php',
'Jose\\Component\\Signature\\Tests\\ForeignJWTTest' => __DIR__ . '/..' . '/web-token/jwt-signature/Tests/ForeignJWTTest.php',
'Jose\\Component\\Signature\\Tests\\JWSFlattenedTest' => __DIR__ . '/..' . '/web-token/jwt-signature/Tests/JWSFlattenedTest.php',
'Jose\\Component\\Signature\\Tests\\JWSLoaderTest' => __DIR__ . '/..' . '/web-token/jwt-signature/Tests/JWSLoaderTest.php',
'Jose\\Component\\Signature\\Tests\\JWSSplitTest' => __DIR__ . '/..' . '/web-token/jwt-signature/Tests/JWSSplitTest.php',
'Jose\\Component\\Signature\\Tests\\JWSTest' => __DIR__ . '/..' . '/web-token/jwt-signature/Tests/JWSTest.php',
'Jose\\Component\\Signature\\Tests\\RFC7520\\MultipleSignaturesTest' => __DIR__ . '/..' . '/web-token/jwt-signature/Tests/RFC7520/MultipleSignaturesTest.php',
'Jose\\Component\\Signature\\Tests\\RFC7520\\NestingTest' => __DIR__ . '/..' . '/web-token/jwt-signature/Tests/RFC7520/NestingTest.php',
'Jose\\Component\\Signature\\Tests\\SignatureTest' => __DIR__ . '/..' . '/web-token/jwt-signature/Tests/SignatureTest.php',
'Jose\\Component\\Signature\\Tests\\SignerTest' => __DIR__ . '/..' . '/web-token/jwt-signature/Tests/SignerTest.php',
'Jose\\Easy\\AbstractBuilder' => __DIR__ . '/..' . '/web-token/jwt-easy/AbstractBuilder.php',
'Jose\\Easy\\AbstractLoader' => __DIR__ . '/..' . '/web-token/jwt-easy/AbstractLoader.php',
'Jose\\Easy\\AlgorithmProvider' => __DIR__ . '/..' . '/web-token/jwt-easy/AlgorithmProvider.php',
'Jose\\Easy\\Build' => __DIR__ . '/..' . '/web-token/jwt-easy/Build.php',
'Jose\\Easy\\CallableChecker' => __DIR__ . '/..' . '/web-token/jwt-easy/CallableChecker.php',
'Jose\\Easy\\ContentEncryptionAlgorithmChecker' => __DIR__ . '/..' . '/web-token/jwt-easy/ContentEncryptionAlgorithmChecker.php',
'Jose\\Easy\\Decrypt' => __DIR__ . '/..' . '/web-token/jwt-easy/Decrypt.php',
'Jose\\Easy\\JWEBuilder' => __DIR__ . '/..' . '/web-token/jwt-easy/JWEBuilder.php',
'Jose\\Easy\\JWSBuilder' => __DIR__ . '/..' . '/web-token/jwt-easy/JWSBuilder.php',
'Jose\\Easy\\JWT' => __DIR__ . '/..' . '/web-token/jwt-easy/JWT.php',
'Jose\\Easy\\Load' => __DIR__ . '/..' . '/web-token/jwt-easy/Load.php',
'Jose\\Easy\\ParameterBag' => __DIR__ . '/..' . '/web-token/jwt-easy/ParameterBag.php',
'Jose\\Easy\\Tests\\AlgorithmProviderTest' => __DIR__ . '/..' . '/web-token/jwt-easy/Tests/AlgorithmProviderTest.php',
'Jose\\Easy\\Tests\\EncryptionTest' => __DIR__ . '/..' . '/web-token/jwt-easy/Tests/EncryptionTest.php',
'Jose\\Easy\\Tests\\ParameterBagTest' => __DIR__ . '/..' . '/web-token/jwt-easy/Tests/ParameterBagTest.php',
'Jose\\Easy\\Tests\\SignatureTest' => __DIR__ . '/..' . '/web-token/jwt-easy/Tests/SignatureTest.php',
'Jose\\Easy\\Validate' => __DIR__ . '/..' . '/web-token/jwt-easy/Validate.php',
'JsonException' => __DIR__ . '/..' . '/symfony/polyfill-php73/Resources/stubs/JsonException.php',
'Khill\\Lavacharts\\Builders\\ChartBuilder' => __DIR__ . '/..' . '/khill/lavacharts/src/Builders/ChartBuilder.php',
'Khill\\Lavacharts\\Builders\\DashboardBuilder' => __DIR__ . '/..' . '/khill/lavacharts/src/Builders/DashboardBuilder.php',
@@ -3712,6 +3994,277 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'PhpOption\\None' => __DIR__ . '/..' . '/phpoption/phpoption/src/PhpOption/None.php',
'PhpOption\\Option' => __DIR__ . '/..' . '/phpoption/phpoption/src/PhpOption/Option.php',
'PhpOption\\Some' => __DIR__ . '/..' . '/phpoption/phpoption/src/PhpOption/Some.php',
'Predis\\Autoloader' => __DIR__ . '/..' . '/predis/predis/src/Autoloader.php',
'Predis\\Client' => __DIR__ . '/..' . '/predis/predis/src/Client.php',
'Predis\\ClientContextInterface' => __DIR__ . '/..' . '/predis/predis/src/ClientContextInterface.php',
'Predis\\ClientException' => __DIR__ . '/..' . '/predis/predis/src/ClientException.php',
'Predis\\ClientInterface' => __DIR__ . '/..' . '/predis/predis/src/ClientInterface.php',
'Predis\\Cluster\\ClusterStrategy' => __DIR__ . '/..' . '/predis/predis/src/Cluster/ClusterStrategy.php',
'Predis\\Cluster\\Distributor\\DistributorInterface' => __DIR__ . '/..' . '/predis/predis/src/Cluster/Distributor/DistributorInterface.php',
'Predis\\Cluster\\Distributor\\EmptyRingException' => __DIR__ . '/..' . '/predis/predis/src/Cluster/Distributor/EmptyRingException.php',
'Predis\\Cluster\\Distributor\\HashRing' => __DIR__ . '/..' . '/predis/predis/src/Cluster/Distributor/HashRing.php',
'Predis\\Cluster\\Distributor\\KetamaRing' => __DIR__ . '/..' . '/predis/predis/src/Cluster/Distributor/KetamaRing.php',
'Predis\\Cluster\\Hash\\CRC16' => __DIR__ . '/..' . '/predis/predis/src/Cluster/Hash/CRC16.php',
'Predis\\Cluster\\Hash\\HashGeneratorInterface' => __DIR__ . '/..' . '/predis/predis/src/Cluster/Hash/HashGeneratorInterface.php',
'Predis\\Cluster\\PredisStrategy' => __DIR__ . '/..' . '/predis/predis/src/Cluster/PredisStrategy.php',
'Predis\\Cluster\\RedisStrategy' => __DIR__ . '/..' . '/predis/predis/src/Cluster/RedisStrategy.php',
'Predis\\Cluster\\StrategyInterface' => __DIR__ . '/..' . '/predis/predis/src/Cluster/StrategyInterface.php',
'Predis\\Collection\\Iterator\\CursorBasedIterator' => __DIR__ . '/..' . '/predis/predis/src/Collection/Iterator/CursorBasedIterator.php',
'Predis\\Collection\\Iterator\\HashKey' => __DIR__ . '/..' . '/predis/predis/src/Collection/Iterator/HashKey.php',
'Predis\\Collection\\Iterator\\Keyspace' => __DIR__ . '/..' . '/predis/predis/src/Collection/Iterator/Keyspace.php',
'Predis\\Collection\\Iterator\\ListKey' => __DIR__ . '/..' . '/predis/predis/src/Collection/Iterator/ListKey.php',
'Predis\\Collection\\Iterator\\SetKey' => __DIR__ . '/..' . '/predis/predis/src/Collection/Iterator/SetKey.php',
'Predis\\Collection\\Iterator\\SortedSetKey' => __DIR__ . '/..' . '/predis/predis/src/Collection/Iterator/SortedSetKey.php',
'Predis\\Command\\Command' => __DIR__ . '/..' . '/predis/predis/src/Command/Command.php',
'Predis\\Command\\CommandInterface' => __DIR__ . '/..' . '/predis/predis/src/Command/CommandInterface.php',
'Predis\\Command\\ConnectionAuth' => __DIR__ . '/..' . '/predis/predis/src/Command/ConnectionAuth.php',
'Predis\\Command\\ConnectionEcho' => __DIR__ . '/..' . '/predis/predis/src/Command/ConnectionEcho.php',
'Predis\\Command\\ConnectionPing' => __DIR__ . '/..' . '/predis/predis/src/Command/ConnectionPing.php',
'Predis\\Command\\ConnectionQuit' => __DIR__ . '/..' . '/predis/predis/src/Command/ConnectionQuit.php',
'Predis\\Command\\ConnectionSelect' => __DIR__ . '/..' . '/predis/predis/src/Command/ConnectionSelect.php',
'Predis\\Command\\GeospatialGeoAdd' => __DIR__ . '/..' . '/predis/predis/src/Command/GeospatialGeoAdd.php',
'Predis\\Command\\GeospatialGeoDist' => __DIR__ . '/..' . '/predis/predis/src/Command/GeospatialGeoDist.php',
'Predis\\Command\\GeospatialGeoHash' => __DIR__ . '/..' . '/predis/predis/src/Command/GeospatialGeoHash.php',
'Predis\\Command\\GeospatialGeoPos' => __DIR__ . '/..' . '/predis/predis/src/Command/GeospatialGeoPos.php',
'Predis\\Command\\GeospatialGeoRadius' => __DIR__ . '/..' . '/predis/predis/src/Command/GeospatialGeoRadius.php',
'Predis\\Command\\GeospatialGeoRadiusByMember' => __DIR__ . '/..' . '/predis/predis/src/Command/GeospatialGeoRadiusByMember.php',
'Predis\\Command\\HashDelete' => __DIR__ . '/..' . '/predis/predis/src/Command/HashDelete.php',
'Predis\\Command\\HashExists' => __DIR__ . '/..' . '/predis/predis/src/Command/HashExists.php',
'Predis\\Command\\HashGet' => __DIR__ . '/..' . '/predis/predis/src/Command/HashGet.php',
'Predis\\Command\\HashGetAll' => __DIR__ . '/..' . '/predis/predis/src/Command/HashGetAll.php',
'Predis\\Command\\HashGetMultiple' => __DIR__ . '/..' . '/predis/predis/src/Command/HashGetMultiple.php',
'Predis\\Command\\HashIncrementBy' => __DIR__ . '/..' . '/predis/predis/src/Command/HashIncrementBy.php',
'Predis\\Command\\HashIncrementByFloat' => __DIR__ . '/..' . '/predis/predis/src/Command/HashIncrementByFloat.php',
'Predis\\Command\\HashKeys' => __DIR__ . '/..' . '/predis/predis/src/Command/HashKeys.php',
'Predis\\Command\\HashLength' => __DIR__ . '/..' . '/predis/predis/src/Command/HashLength.php',
'Predis\\Command\\HashScan' => __DIR__ . '/..' . '/predis/predis/src/Command/HashScan.php',
'Predis\\Command\\HashSet' => __DIR__ . '/..' . '/predis/predis/src/Command/HashSet.php',
'Predis\\Command\\HashSetMultiple' => __DIR__ . '/..' . '/predis/predis/src/Command/HashSetMultiple.php',
'Predis\\Command\\HashSetPreserve' => __DIR__ . '/..' . '/predis/predis/src/Command/HashSetPreserve.php',
'Predis\\Command\\HashStringLength' => __DIR__ . '/..' . '/predis/predis/src/Command/HashStringLength.php',
'Predis\\Command\\HashValues' => __DIR__ . '/..' . '/predis/predis/src/Command/HashValues.php',
'Predis\\Command\\HyperLogLogAdd' => __DIR__ . '/..' . '/predis/predis/src/Command/HyperLogLogAdd.php',
'Predis\\Command\\HyperLogLogCount' => __DIR__ . '/..' . '/predis/predis/src/Command/HyperLogLogCount.php',
'Predis\\Command\\HyperLogLogMerge' => __DIR__ . '/..' . '/predis/predis/src/Command/HyperLogLogMerge.php',
'Predis\\Command\\KeyDelete' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyDelete.php',
'Predis\\Command\\KeyDump' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyDump.php',
'Predis\\Command\\KeyExists' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyExists.php',
'Predis\\Command\\KeyExpire' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyExpire.php',
'Predis\\Command\\KeyExpireAt' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyExpireAt.php',
'Predis\\Command\\KeyKeys' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyKeys.php',
'Predis\\Command\\KeyMigrate' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyMigrate.php',
'Predis\\Command\\KeyMove' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyMove.php',
'Predis\\Command\\KeyPersist' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyPersist.php',
'Predis\\Command\\KeyPreciseExpire' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyPreciseExpire.php',
'Predis\\Command\\KeyPreciseExpireAt' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyPreciseExpireAt.php',
'Predis\\Command\\KeyPreciseTimeToLive' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyPreciseTimeToLive.php',
'Predis\\Command\\KeyRandom' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyRandom.php',
'Predis\\Command\\KeyRename' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyRename.php',
'Predis\\Command\\KeyRenamePreserve' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyRenamePreserve.php',
'Predis\\Command\\KeyRestore' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyRestore.php',
'Predis\\Command\\KeyScan' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyScan.php',
'Predis\\Command\\KeySort' => __DIR__ . '/..' . '/predis/predis/src/Command/KeySort.php',
'Predis\\Command\\KeyTimeToLive' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyTimeToLive.php',
'Predis\\Command\\KeyType' => __DIR__ . '/..' . '/predis/predis/src/Command/KeyType.php',
'Predis\\Command\\ListIndex' => __DIR__ . '/..' . '/predis/predis/src/Command/ListIndex.php',
'Predis\\Command\\ListInsert' => __DIR__ . '/..' . '/predis/predis/src/Command/ListInsert.php',
'Predis\\Command\\ListLength' => __DIR__ . '/..' . '/predis/predis/src/Command/ListLength.php',
'Predis\\Command\\ListPopFirst' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPopFirst.php',
'Predis\\Command\\ListPopFirstBlocking' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPopFirstBlocking.php',
'Predis\\Command\\ListPopLast' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPopLast.php',
'Predis\\Command\\ListPopLastBlocking' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPopLastBlocking.php',
'Predis\\Command\\ListPopLastPushHead' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPopLastPushHead.php',
'Predis\\Command\\ListPopLastPushHeadBlocking' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPopLastPushHeadBlocking.php',
'Predis\\Command\\ListPushHead' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPushHead.php',
'Predis\\Command\\ListPushHeadX' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPushHeadX.php',
'Predis\\Command\\ListPushTail' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPushTail.php',
'Predis\\Command\\ListPushTailX' => __DIR__ . '/..' . '/predis/predis/src/Command/ListPushTailX.php',
'Predis\\Command\\ListRange' => __DIR__ . '/..' . '/predis/predis/src/Command/ListRange.php',
'Predis\\Command\\ListRemove' => __DIR__ . '/..' . '/predis/predis/src/Command/ListRemove.php',
'Predis\\Command\\ListSet' => __DIR__ . '/..' . '/predis/predis/src/Command/ListSet.php',
'Predis\\Command\\ListTrim' => __DIR__ . '/..' . '/predis/predis/src/Command/ListTrim.php',
'Predis\\Command\\PrefixableCommandInterface' => __DIR__ . '/..' . '/predis/predis/src/Command/PrefixableCommandInterface.php',
'Predis\\Command\\Processor\\KeyPrefixProcessor' => __DIR__ . '/..' . '/predis/predis/src/Command/Processor/KeyPrefixProcessor.php',
'Predis\\Command\\Processor\\ProcessorChain' => __DIR__ . '/..' . '/predis/predis/src/Command/Processor/ProcessorChain.php',
'Predis\\Command\\Processor\\ProcessorInterface' => __DIR__ . '/..' . '/predis/predis/src/Command/Processor/ProcessorInterface.php',
'Predis\\Command\\PubSubPublish' => __DIR__ . '/..' . '/predis/predis/src/Command/PubSubPublish.php',
'Predis\\Command\\PubSubPubsub' => __DIR__ . '/..' . '/predis/predis/src/Command/PubSubPubsub.php',
'Predis\\Command\\PubSubSubscribe' => __DIR__ . '/..' . '/predis/predis/src/Command/PubSubSubscribe.php',
'Predis\\Command\\PubSubSubscribeByPattern' => __DIR__ . '/..' . '/predis/predis/src/Command/PubSubSubscribeByPattern.php',
'Predis\\Command\\PubSubUnsubscribe' => __DIR__ . '/..' . '/predis/predis/src/Command/PubSubUnsubscribe.php',
'Predis\\Command\\PubSubUnsubscribeByPattern' => __DIR__ . '/..' . '/predis/predis/src/Command/PubSubUnsubscribeByPattern.php',
'Predis\\Command\\RawCommand' => __DIR__ . '/..' . '/predis/predis/src/Command/RawCommand.php',
'Predis\\Command\\ScriptCommand' => __DIR__ . '/..' . '/predis/predis/src/Command/ScriptCommand.php',
'Predis\\Command\\ServerBackgroundRewriteAOF' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerBackgroundRewriteAOF.php',
'Predis\\Command\\ServerBackgroundSave' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerBackgroundSave.php',
'Predis\\Command\\ServerClient' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerClient.php',
'Predis\\Command\\ServerCommand' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerCommand.php',
'Predis\\Command\\ServerConfig' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerConfig.php',
'Predis\\Command\\ServerDatabaseSize' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerDatabaseSize.php',
'Predis\\Command\\ServerEval' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerEval.php',
'Predis\\Command\\ServerEvalSHA' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerEvalSHA.php',
'Predis\\Command\\ServerFlushAll' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerFlushAll.php',
'Predis\\Command\\ServerFlushDatabase' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerFlushDatabase.php',
'Predis\\Command\\ServerInfo' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerInfo.php',
'Predis\\Command\\ServerInfoV26x' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerInfoV26x.php',
'Predis\\Command\\ServerLastSave' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerLastSave.php',
'Predis\\Command\\ServerMonitor' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerMonitor.php',
'Predis\\Command\\ServerObject' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerObject.php',
'Predis\\Command\\ServerSave' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerSave.php',
'Predis\\Command\\ServerScript' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerScript.php',
'Predis\\Command\\ServerSentinel' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerSentinel.php',
'Predis\\Command\\ServerShutdown' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerShutdown.php',
'Predis\\Command\\ServerSlaveOf' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerSlaveOf.php',
'Predis\\Command\\ServerSlowlog' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerSlowlog.php',
'Predis\\Command\\ServerTime' => __DIR__ . '/..' . '/predis/predis/src/Command/ServerTime.php',
'Predis\\Command\\SetAdd' => __DIR__ . '/..' . '/predis/predis/src/Command/SetAdd.php',
'Predis\\Command\\SetCardinality' => __DIR__ . '/..' . '/predis/predis/src/Command/SetCardinality.php',
'Predis\\Command\\SetDifference' => __DIR__ . '/..' . '/predis/predis/src/Command/SetDifference.php',
'Predis\\Command\\SetDifferenceStore' => __DIR__ . '/..' . '/predis/predis/src/Command/SetDifferenceStore.php',
'Predis\\Command\\SetIntersection' => __DIR__ . '/..' . '/predis/predis/src/Command/SetIntersection.php',
'Predis\\Command\\SetIntersectionStore' => __DIR__ . '/..' . '/predis/predis/src/Command/SetIntersectionStore.php',
'Predis\\Command\\SetIsMember' => __DIR__ . '/..' . '/predis/predis/src/Command/SetIsMember.php',
'Predis\\Command\\SetMembers' => __DIR__ . '/..' . '/predis/predis/src/Command/SetMembers.php',
'Predis\\Command\\SetMove' => __DIR__ . '/..' . '/predis/predis/src/Command/SetMove.php',
'Predis\\Command\\SetPop' => __DIR__ . '/..' . '/predis/predis/src/Command/SetPop.php',
'Predis\\Command\\SetRandomMember' => __DIR__ . '/..' . '/predis/predis/src/Command/SetRandomMember.php',
'Predis\\Command\\SetRemove' => __DIR__ . '/..' . '/predis/predis/src/Command/SetRemove.php',
'Predis\\Command\\SetScan' => __DIR__ . '/..' . '/predis/predis/src/Command/SetScan.php',
'Predis\\Command\\SetUnion' => __DIR__ . '/..' . '/predis/predis/src/Command/SetUnion.php',
'Predis\\Command\\SetUnionStore' => __DIR__ . '/..' . '/predis/predis/src/Command/SetUnionStore.php',
'Predis\\Command\\StringAppend' => __DIR__ . '/..' . '/predis/predis/src/Command/StringAppend.php',
'Predis\\Command\\StringBitCount' => __DIR__ . '/..' . '/predis/predis/src/Command/StringBitCount.php',
'Predis\\Command\\StringBitField' => __DIR__ . '/..' . '/predis/predis/src/Command/StringBitField.php',
'Predis\\Command\\StringBitOp' => __DIR__ . '/..' . '/predis/predis/src/Command/StringBitOp.php',
'Predis\\Command\\StringBitPos' => __DIR__ . '/..' . '/predis/predis/src/Command/StringBitPos.php',
'Predis\\Command\\StringDecrement' => __DIR__ . '/..' . '/predis/predis/src/Command/StringDecrement.php',
'Predis\\Command\\StringDecrementBy' => __DIR__ . '/..' . '/predis/predis/src/Command/StringDecrementBy.php',
'Predis\\Command\\StringGet' => __DIR__ . '/..' . '/predis/predis/src/Command/StringGet.php',
'Predis\\Command\\StringGetBit' => __DIR__ . '/..' . '/predis/predis/src/Command/StringGetBit.php',
'Predis\\Command\\StringGetMultiple' => __DIR__ . '/..' . '/predis/predis/src/Command/StringGetMultiple.php',
'Predis\\Command\\StringGetRange' => __DIR__ . '/..' . '/predis/predis/src/Command/StringGetRange.php',
'Predis\\Command\\StringGetSet' => __DIR__ . '/..' . '/predis/predis/src/Command/StringGetSet.php',
'Predis\\Command\\StringIncrement' => __DIR__ . '/..' . '/predis/predis/src/Command/StringIncrement.php',
'Predis\\Command\\StringIncrementBy' => __DIR__ . '/..' . '/predis/predis/src/Command/StringIncrementBy.php',
'Predis\\Command\\StringIncrementByFloat' => __DIR__ . '/..' . '/predis/predis/src/Command/StringIncrementByFloat.php',
'Predis\\Command\\StringPreciseSetExpire' => __DIR__ . '/..' . '/predis/predis/src/Command/StringPreciseSetExpire.php',
'Predis\\Command\\StringSet' => __DIR__ . '/..' . '/predis/predis/src/Command/StringSet.php',
'Predis\\Command\\StringSetBit' => __DIR__ . '/..' . '/predis/predis/src/Command/StringSetBit.php',
'Predis\\Command\\StringSetExpire' => __DIR__ . '/..' . '/predis/predis/src/Command/StringSetExpire.php',
'Predis\\Command\\StringSetMultiple' => __DIR__ . '/..' . '/predis/predis/src/Command/StringSetMultiple.php',
'Predis\\Command\\StringSetMultiplePreserve' => __DIR__ . '/..' . '/predis/predis/src/Command/StringSetMultiplePreserve.php',
'Predis\\Command\\StringSetPreserve' => __DIR__ . '/..' . '/predis/predis/src/Command/StringSetPreserve.php',
'Predis\\Command\\StringSetRange' => __DIR__ . '/..' . '/predis/predis/src/Command/StringSetRange.php',
'Predis\\Command\\StringStrlen' => __DIR__ . '/..' . '/predis/predis/src/Command/StringStrlen.php',
'Predis\\Command\\StringSubstr' => __DIR__ . '/..' . '/predis/predis/src/Command/StringSubstr.php',
'Predis\\Command\\TransactionDiscard' => __DIR__ . '/..' . '/predis/predis/src/Command/TransactionDiscard.php',
'Predis\\Command\\TransactionExec' => __DIR__ . '/..' . '/predis/predis/src/Command/TransactionExec.php',
'Predis\\Command\\TransactionMulti' => __DIR__ . '/..' . '/predis/predis/src/Command/TransactionMulti.php',
'Predis\\Command\\TransactionUnwatch' => __DIR__ . '/..' . '/predis/predis/src/Command/TransactionUnwatch.php',
'Predis\\Command\\TransactionWatch' => __DIR__ . '/..' . '/predis/predis/src/Command/TransactionWatch.php',
'Predis\\Command\\ZSetAdd' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetAdd.php',
'Predis\\Command\\ZSetCardinality' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetCardinality.php',
'Predis\\Command\\ZSetCount' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetCount.php',
'Predis\\Command\\ZSetIncrementBy' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetIncrementBy.php',
'Predis\\Command\\ZSetIntersectionStore' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetIntersectionStore.php',
'Predis\\Command\\ZSetLexCount' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetLexCount.php',
'Predis\\Command\\ZSetRange' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetRange.php',
'Predis\\Command\\ZSetRangeByLex' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetRangeByLex.php',
'Predis\\Command\\ZSetRangeByScore' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetRangeByScore.php',
'Predis\\Command\\ZSetRank' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetRank.php',
'Predis\\Command\\ZSetRemove' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetRemove.php',
'Predis\\Command\\ZSetRemoveRangeByLex' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetRemoveRangeByLex.php',
'Predis\\Command\\ZSetRemoveRangeByRank' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetRemoveRangeByRank.php',
'Predis\\Command\\ZSetRemoveRangeByScore' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetRemoveRangeByScore.php',
'Predis\\Command\\ZSetReverseRange' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetReverseRange.php',
'Predis\\Command\\ZSetReverseRangeByLex' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetReverseRangeByLex.php',
'Predis\\Command\\ZSetReverseRangeByScore' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetReverseRangeByScore.php',
'Predis\\Command\\ZSetReverseRank' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetReverseRank.php',
'Predis\\Command\\ZSetScan' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetScan.php',
'Predis\\Command\\ZSetScore' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetScore.php',
'Predis\\Command\\ZSetUnionStore' => __DIR__ . '/..' . '/predis/predis/src/Command/ZSetUnionStore.php',
'Predis\\CommunicationException' => __DIR__ . '/..' . '/predis/predis/src/CommunicationException.php',
'Predis\\Configuration\\ClusterOption' => __DIR__ . '/..' . '/predis/predis/src/Configuration/ClusterOption.php',
'Predis\\Configuration\\ConnectionFactoryOption' => __DIR__ . '/..' . '/predis/predis/src/Configuration/ConnectionFactoryOption.php',
'Predis\\Configuration\\ExceptionsOption' => __DIR__ . '/..' . '/predis/predis/src/Configuration/ExceptionsOption.php',
'Predis\\Configuration\\OptionInterface' => __DIR__ . '/..' . '/predis/predis/src/Configuration/OptionInterface.php',
'Predis\\Configuration\\Options' => __DIR__ . '/..' . '/predis/predis/src/Configuration/Options.php',
'Predis\\Configuration\\OptionsInterface' => __DIR__ . '/..' . '/predis/predis/src/Configuration/OptionsInterface.php',
'Predis\\Configuration\\PrefixOption' => __DIR__ . '/..' . '/predis/predis/src/Configuration/PrefixOption.php',
'Predis\\Configuration\\ProfileOption' => __DIR__ . '/..' . '/predis/predis/src/Configuration/ProfileOption.php',
'Predis\\Configuration\\ReplicationOption' => __DIR__ . '/..' . '/predis/predis/src/Configuration/ReplicationOption.php',
'Predis\\Connection\\AbstractConnection' => __DIR__ . '/..' . '/predis/predis/src/Connection/AbstractConnection.php',
'Predis\\Connection\\AggregateConnectionInterface' => __DIR__ . '/..' . '/predis/predis/src/Connection/AggregateConnectionInterface.php',
'Predis\\Connection\\Aggregate\\ClusterInterface' => __DIR__ . '/..' . '/predis/predis/src/Connection/Aggregate/ClusterInterface.php',
'Predis\\Connection\\Aggregate\\MasterSlaveReplication' => __DIR__ . '/..' . '/predis/predis/src/Connection/Aggregate/MasterSlaveReplication.php',
'Predis\\Connection\\Aggregate\\PredisCluster' => __DIR__ . '/..' . '/predis/predis/src/Connection/Aggregate/PredisCluster.php',
'Predis\\Connection\\Aggregate\\RedisCluster' => __DIR__ . '/..' . '/predis/predis/src/Connection/Aggregate/RedisCluster.php',
'Predis\\Connection\\Aggregate\\ReplicationInterface' => __DIR__ . '/..' . '/predis/predis/src/Connection/Aggregate/ReplicationInterface.php',
'Predis\\Connection\\Aggregate\\SentinelReplication' => __DIR__ . '/..' . '/predis/predis/src/Connection/Aggregate/SentinelReplication.php',
'Predis\\Connection\\CompositeConnectionInterface' => __DIR__ . '/..' . '/predis/predis/src/Connection/CompositeConnectionInterface.php',
'Predis\\Connection\\CompositeStreamConnection' => __DIR__ . '/..' . '/predis/predis/src/Connection/CompositeStreamConnection.php',
'Predis\\Connection\\ConnectionException' => __DIR__ . '/..' . '/predis/predis/src/Connection/ConnectionException.php',
'Predis\\Connection\\ConnectionInterface' => __DIR__ . '/..' . '/predis/predis/src/Connection/ConnectionInterface.php',
'Predis\\Connection\\Factory' => __DIR__ . '/..' . '/predis/predis/src/Connection/Factory.php',
'Predis\\Connection\\FactoryInterface' => __DIR__ . '/..' . '/predis/predis/src/Connection/FactoryInterface.php',
'Predis\\Connection\\NodeConnectionInterface' => __DIR__ . '/..' . '/predis/predis/src/Connection/NodeConnectionInterface.php',
'Predis\\Connection\\Parameters' => __DIR__ . '/..' . '/predis/predis/src/Connection/Parameters.php',
'Predis\\Connection\\ParametersInterface' => __DIR__ . '/..' . '/predis/predis/src/Connection/ParametersInterface.php',
'Predis\\Connection\\PhpiredisSocketConnection' => __DIR__ . '/..' . '/predis/predis/src/Connection/PhpiredisSocketConnection.php',
'Predis\\Connection\\PhpiredisStreamConnection' => __DIR__ . '/..' . '/predis/predis/src/Connection/PhpiredisStreamConnection.php',
'Predis\\Connection\\StreamConnection' => __DIR__ . '/..' . '/predis/predis/src/Connection/StreamConnection.php',
'Predis\\Connection\\WebdisConnection' => __DIR__ . '/..' . '/predis/predis/src/Connection/WebdisConnection.php',
'Predis\\Monitor\\Consumer' => __DIR__ . '/..' . '/predis/predis/src/Monitor/Consumer.php',
'Predis\\NotSupportedException' => __DIR__ . '/..' . '/predis/predis/src/NotSupportedException.php',
'Predis\\Pipeline\\Atomic' => __DIR__ . '/..' . '/predis/predis/src/Pipeline/Atomic.php',
'Predis\\Pipeline\\ConnectionErrorProof' => __DIR__ . '/..' . '/predis/predis/src/Pipeline/ConnectionErrorProof.php',
'Predis\\Pipeline\\FireAndForget' => __DIR__ . '/..' . '/predis/predis/src/Pipeline/FireAndForget.php',
'Predis\\Pipeline\\Pipeline' => __DIR__ . '/..' . '/predis/predis/src/Pipeline/Pipeline.php',
'Predis\\PredisException' => __DIR__ . '/..' . '/predis/predis/src/PredisException.php',
'Predis\\Profile\\Factory' => __DIR__ . '/..' . '/predis/predis/src/Profile/Factory.php',
'Predis\\Profile\\ProfileInterface' => __DIR__ . '/..' . '/predis/predis/src/Profile/ProfileInterface.php',
'Predis\\Profile\\RedisProfile' => __DIR__ . '/..' . '/predis/predis/src/Profile/RedisProfile.php',
'Predis\\Profile\\RedisUnstable' => __DIR__ . '/..' . '/predis/predis/src/Profile/RedisUnstable.php',
'Predis\\Profile\\RedisVersion200' => __DIR__ . '/..' . '/predis/predis/src/Profile/RedisVersion200.php',
'Predis\\Profile\\RedisVersion220' => __DIR__ . '/..' . '/predis/predis/src/Profile/RedisVersion220.php',
'Predis\\Profile\\RedisVersion240' => __DIR__ . '/..' . '/predis/predis/src/Profile/RedisVersion240.php',
'Predis\\Profile\\RedisVersion260' => __DIR__ . '/..' . '/predis/predis/src/Profile/RedisVersion260.php',
'Predis\\Profile\\RedisVersion280' => __DIR__ . '/..' . '/predis/predis/src/Profile/RedisVersion280.php',
'Predis\\Profile\\RedisVersion300' => __DIR__ . '/..' . '/predis/predis/src/Profile/RedisVersion300.php',
'Predis\\Profile\\RedisVersion320' => __DIR__ . '/..' . '/predis/predis/src/Profile/RedisVersion320.php',
'Predis\\Protocol\\ProtocolException' => __DIR__ . '/..' . '/predis/predis/src/Protocol/ProtocolException.php',
'Predis\\Protocol\\ProtocolProcessorInterface' => __DIR__ . '/..' . '/predis/predis/src/Protocol/ProtocolProcessorInterface.php',
'Predis\\Protocol\\RequestSerializerInterface' => __DIR__ . '/..' . '/predis/predis/src/Protocol/RequestSerializerInterface.php',
'Predis\\Protocol\\ResponseReaderInterface' => __DIR__ . '/..' . '/predis/predis/src/Protocol/ResponseReaderInterface.php',
'Predis\\Protocol\\Text\\CompositeProtocolProcessor' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/CompositeProtocolProcessor.php',
'Predis\\Protocol\\Text\\Handler\\BulkResponse' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/Handler/BulkResponse.php',
'Predis\\Protocol\\Text\\Handler\\ErrorResponse' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/Handler/ErrorResponse.php',
'Predis\\Protocol\\Text\\Handler\\IntegerResponse' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/Handler/IntegerResponse.php',
'Predis\\Protocol\\Text\\Handler\\MultiBulkResponse' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/Handler/MultiBulkResponse.php',
'Predis\\Protocol\\Text\\Handler\\ResponseHandlerInterface' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/Handler/ResponseHandlerInterface.php',
'Predis\\Protocol\\Text\\Handler\\StatusResponse' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/Handler/StatusResponse.php',
'Predis\\Protocol\\Text\\Handler\\StreamableMultiBulkResponse' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/Handler/StreamableMultiBulkResponse.php',
'Predis\\Protocol\\Text\\ProtocolProcessor' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/ProtocolProcessor.php',
'Predis\\Protocol\\Text\\RequestSerializer' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/RequestSerializer.php',
'Predis\\Protocol\\Text\\ResponseReader' => __DIR__ . '/..' . '/predis/predis/src/Protocol/Text/ResponseReader.php',
'Predis\\PubSub\\AbstractConsumer' => __DIR__ . '/..' . '/predis/predis/src/PubSub/AbstractConsumer.php',
'Predis\\PubSub\\Consumer' => __DIR__ . '/..' . '/predis/predis/src/PubSub/Consumer.php',
'Predis\\PubSub\\DispatcherLoop' => __DIR__ . '/..' . '/predis/predis/src/PubSub/DispatcherLoop.php',
'Predis\\Replication\\MissingMasterException' => __DIR__ . '/..' . '/predis/predis/src/Replication/MissingMasterException.php',
'Predis\\Replication\\ReplicationStrategy' => __DIR__ . '/..' . '/predis/predis/src/Replication/ReplicationStrategy.php',
'Predis\\Replication\\RoleException' => __DIR__ . '/..' . '/predis/predis/src/Replication/RoleException.php',
'Predis\\Response\\Error' => __DIR__ . '/..' . '/predis/predis/src/Response/Error.php',
'Predis\\Response\\ErrorInterface' => __DIR__ . '/..' . '/predis/predis/src/Response/ErrorInterface.php',
'Predis\\Response\\Iterator\\MultiBulk' => __DIR__ . '/..' . '/predis/predis/src/Response/Iterator/MultiBulk.php',
'Predis\\Response\\Iterator\\MultiBulkIterator' => __DIR__ . '/..' . '/predis/predis/src/Response/Iterator/MultiBulkIterator.php',
'Predis\\Response\\Iterator\\MultiBulkTuple' => __DIR__ . '/..' . '/predis/predis/src/Response/Iterator/MultiBulkTuple.php',
'Predis\\Response\\ResponseInterface' => __DIR__ . '/..' . '/predis/predis/src/Response/ResponseInterface.php',
'Predis\\Response\\ServerException' => __DIR__ . '/..' . '/predis/predis/src/Response/ServerException.php',
'Predis\\Response\\Status' => __DIR__ . '/..' . '/predis/predis/src/Response/Status.php',
'Predis\\Session\\Handler' => __DIR__ . '/..' . '/predis/predis/src/Session/Handler.php',
'Predis\\Transaction\\AbortedMultiExecException' => __DIR__ . '/..' . '/predis/predis/src/Transaction/AbortedMultiExecException.php',
'Predis\\Transaction\\MultiExec' => __DIR__ . '/..' . '/predis/predis/src/Transaction/MultiExec.php',
'Predis\\Transaction\\MultiExecState' => __DIR__ . '/..' . '/predis/predis/src/Transaction/MultiExecState.php',
'Prophecy\\Argument' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument.php',
'Prophecy\\Argument\\ArgumentsWildcard' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php',
'Prophecy\\Argument\\Token\\AnyValueToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php',
@@ -3965,6 +4518,41 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'Ramsey\\Uuid\\UuidInterface' => __DIR__ . '/..' . '/ramsey/uuid/src/UuidInterface.php',
'Ramsey\\Uuid\\Validator\\GenericValidator' => __DIR__ . '/..' . '/ramsey/uuid/src/Validator/GenericValidator.php',
'Ramsey\\Uuid\\Validator\\ValidatorInterface' => __DIR__ . '/..' . '/ramsey/uuid/src/Validator/ValidatorInterface.php',
'Seat\\Eseye\\Access\\AccessInterface' => __DIR__ . '/..' . '/eveseat/eseye/src/Access/AccessInterface.php',
'Seat\\Eseye\\Access\\CheckAccess' => __DIR__ . '/..' . '/eveseat/eseye/src/Access/CheckAccess.php',
'Seat\\Eseye\\Cache\\CacheInterface' => __DIR__ . '/..' . '/eveseat/eseye/src/Cache/CacheInterface.php',
'Seat\\Eseye\\Cache\\FileCache' => __DIR__ . '/..' . '/eveseat/eseye/src/Cache/FileCache.php',
'Seat\\Eseye\\Cache\\HashesStrings' => __DIR__ . '/..' . '/eveseat/eseye/src/Cache/HashesStrings.php',
'Seat\\Eseye\\Cache\\MemcachedCache' => __DIR__ . '/..' . '/eveseat/eseye/src/Cache/MemcachedCache.php',
'Seat\\Eseye\\Cache\\NullCache' => __DIR__ . '/..' . '/eveseat/eseye/src/Cache/NullCache.php',
'Seat\\Eseye\\Cache\\RedisCache' => __DIR__ . '/..' . '/eveseat/eseye/src/Cache/RedisCache.php',
'Seat\\Eseye\\Checker\\Claim\\AzpChecker' => __DIR__ . '/..' . '/eveseat/eseye/src/Checker/Claim/AzpChecker.php',
'Seat\\Eseye\\Checker\\Claim\\NameChecker' => __DIR__ . '/..' . '/eveseat/eseye/src/Checker/Claim/NameChecker.php',
'Seat\\Eseye\\Checker\\Claim\\OwnerChecker' => __DIR__ . '/..' . '/eveseat/eseye/src/Checker/Claim/OwnerChecker.php',
'Seat\\Eseye\\Checker\\Claim\\SubEveCharacterChecker' => __DIR__ . '/..' . '/eveseat/eseye/src/Checker/Claim/SubEveCharacterChecker.php',
'Seat\\Eseye\\Checker\\Header\\TypeChecker' => __DIR__ . '/..' . '/eveseat/eseye/src/Checker/Header/TypeChecker.php',
'Seat\\Eseye\\Configuration' => __DIR__ . '/..' . '/eveseat/eseye/src/Configuration.php',
'Seat\\Eseye\\Containers\\AbstractArrayAccess' => __DIR__ . '/..' . '/eveseat/eseye/src/Containers/AbstractArrayAccess.php',
'Seat\\Eseye\\Containers\\EsiAuthentication' => __DIR__ . '/..' . '/eveseat/eseye/src/Containers/EsiAuthentication.php',
'Seat\\Eseye\\Containers\\EsiConfiguration' => __DIR__ . '/..' . '/eveseat/eseye/src/Containers/EsiConfiguration.php',
'Seat\\Eseye\\Containers\\EsiResponse' => __DIR__ . '/..' . '/eveseat/eseye/src/Containers/EsiResponse.php',
'Seat\\Eseye\\Eseye' => __DIR__ . '/..' . '/eveseat/eseye/src/Eseye.php',
'Seat\\Eseye\\Exceptions\\CachePathException' => __DIR__ . '/..' . '/eveseat/eseye/src/Exceptions/CachePathException.php',
'Seat\\Eseye\\Exceptions\\EsiScopeAccessDeniedException' => __DIR__ . '/..' . '/eveseat/eseye/src/Exceptions/EsiScopeAccessDeniedException.php',
'Seat\\Eseye\\Exceptions\\InvalidAuthenticationException' => __DIR__ . '/..' . '/eveseat/eseye/src/Exceptions/InvalidAuthenticationException.php',
'Seat\\Eseye\\Exceptions\\InvalidConfigurationException' => __DIR__ . '/..' . '/eveseat/eseye/src/Exceptions/InvalidConfigurationException.php',
'Seat\\Eseye\\Exceptions\\InvalidContainerDataException' => __DIR__ . '/..' . '/eveseat/eseye/src/Exceptions/InvalidContainerDataException.php',
'Seat\\Eseye\\Exceptions\\InvalidEsiSpecException' => __DIR__ . '/..' . '/eveseat/eseye/src/Exceptions/InvalidEsiSpecException.php',
'Seat\\Eseye\\Exceptions\\RequestFailedException' => __DIR__ . '/..' . '/eveseat/eseye/src/Exceptions/RequestFailedException.php',
'Seat\\Eseye\\Exceptions\\UriDataMissingException' => __DIR__ . '/..' . '/eveseat/eseye/src/Exceptions/UriDataMissingException.php',
'Seat\\Eseye\\Fetchers\\FetcherInterface' => __DIR__ . '/..' . '/eveseat/eseye/src/Fetchers/FetcherInterface.php',
'Seat\\Eseye\\Fetchers\\GuzzleFetcher' => __DIR__ . '/..' . '/eveseat/eseye/src/Fetchers/GuzzleFetcher.php',
'Seat\\Eseye\\Log\\FileLogger' => __DIR__ . '/..' . '/eveseat/eseye/src/Log/FileLogger.php',
'Seat\\Eseye\\Log\\LogInterface' => __DIR__ . '/..' . '/eveseat/eseye/src/Log/LogInterface.php',
'Seat\\Eseye\\Log\\NullLogger' => __DIR__ . '/..' . '/eveseat/eseye/src/Log/NullLogger.php',
'Seat\\Eseye\\Log\\RotatingFileLogger' => __DIR__ . '/..' . '/eveseat/eseye/src/Log/RotatingFileLogger.php',
'Seat\\Eseye\\Traits\\ConstructsContainers' => __DIR__ . '/..' . '/eveseat/eseye/src/Traits/ConstructsContainers.php',
'Seat\\Eseye\\Traits\\ValidatesContainers' => __DIR__ . '/..' . '/eveseat/eseye/src/Traits/ValidatesContainers.php',
'SebastianBergmann\\CodeCoverage\\CodeCoverage' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage.php',
'SebastianBergmann\\CodeCoverage\\CoveredCodeNotExecutedException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/CoveredCodeNotExecutedException.php',
'SebastianBergmann\\CodeCoverage\\Driver\\Driver' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Driver/Driver.php',

File diff suppressed because it is too large Load Diff

View File

@@ -6,7 +6,7 @@
'aliases' =>
array (
),
'reference' => '516105c492788aee680ef1dce3d45e514d703747',
'reference' => '0ddd2983509921acf00db95c3cd019abf733acb1',
'name' => 'laravel/laravel',
),
'versions' =>
@@ -97,6 +97,15 @@
),
'reference' => 'ca90a3291eee1538cd48ff25163240695bd95448',
),
'eveseat/eseye' =>
array (
'pretty_version' => '2.3.0',
'version' => '2.3.0.0',
'aliases' =>
array (
),
'reference' => 'e1e310592ea03aa8a68728d8c15d7f04cf29f957',
),
'facade/ignition-contracts' =>
array (
'pretty_version' => '1.0.2',
@@ -106,6 +115,15 @@
),
'reference' => '3c921a1cdba35b68a7f0ccffc6dffc1995b18267',
),
'fgrosse/phpasn1' =>
array (
'pretty_version' => 'v2.2.0',
'version' => '2.2.0.0',
'aliases' =>
array (
),
'reference' => 'd1978f7abd580f3fc33561e7f71d4c12c7531fad',
),
'fideloper/proxy' =>
array (
'pretty_version' => '4.4.1',
@@ -422,7 +440,7 @@
'aliases' =>
array (
),
'reference' => '516105c492788aee680ef1dce3d45e514d703747',
'reference' => '0ddd2983509921acf00db95c3cd019abf733acb1',
),
'laravel/socialite' =>
array (
@@ -662,6 +680,15 @@
),
'reference' => '8e86be391a58104ef86037ba8a846524528d784e',
),
'predis/predis' =>
array (
'pretty_version' => 'v1.1.6',
'version' => '1.1.6.0',
'aliases' =>
array (
),
'reference' => '9930e933c67446962997b05201c69c2319bf26de',
),
'psr/container' =>
array (
'pretty_version' => '1.0.0',
@@ -878,6 +905,15 @@
),
'reference' => '99732be0ddb3361e16ad77b68ba41efc8e979019',
),
'spomky-labs/base64url' =>
array (
'pretty_version' => 'v2.0.4',
'version' => '2.0.4.0',
'aliases' =>
array (
),
'reference' => '7752ce931ec285da4ed1f4c5aa27e45e097be61d',
),
'swiftmailer/swiftmailer' =>
array (
'pretty_version' => 'v6.2.4',
@@ -1196,6 +1232,78 @@
),
'reference' => '80953678b19901e5165c56752d087fc11526017c',
),
'web-token/jwt-checker' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => '73ffe42041b0b8d6ddce56e42533a931d249629c',
),
'web-token/jwt-core' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => '8115d846f3a9ee817dca03024eb4c17a3c0ff81a',
),
'web-token/jwt-easy' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => 'cc59f479dd6b5014586be5d2d40ce84bbd9b4539',
),
'web-token/jwt-encryption' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => '36afc9f25fe8546840dc63c3fc1c6fe166879052',
),
'web-token/jwt-signature' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => 'f4d83f77031c9d27edebbea053931074030d3b09',
),
'web-token/jwt-signature-algorithm-ecdsa' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => '3ae6e56ccf34e8b7b65ec988497d5d1bceca9864',
),
'web-token/jwt-signature-algorithm-hmac' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => 'f4fd8166e6830298fc820a8d5776c124cc2496c4',
),
'web-token/jwt-signature-algorithm-rsa' =>
array (
'pretty_version' => 'v2.2.6',
'version' => '2.2.6.0',
'aliases' =>
array (
),
'reference' => 'ba94b8868bd8fdd481f448097ab900a8cb2c0eed',
),
'webmozart/assert' =>
array (
'pretty_version' => '1.9.1',

24
vendor/eveseat/eseye/.codeclimate.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
---
engines:
duplication:
enabled: true
config:
languages:
- javascript
- php
fixme:
enabled: true
phpmd:
enabled: true
checks:
Controversial/CamelCaseParameterName:
enabled: false
Controversial/CamelCasePropertyName:
enabled: false
Controversial/CamelCaseVariableName:
enabled: false
ratings:
paths:
- "**.php"
exclude_paths:
- tests/

6
vendor/eveseat/eseye/.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
/vendor/
composer.lock
.idea/
/logs/
/cache/
/build/

19
vendor/eveseat/eseye/.styleci.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
preset: laravel
risky: false
enabled:
- no_empty_comment
disabled:
- psr12_braces
- concat_without_spaces
- phpdoc_no_package
- no_blank_lines_after_class_opening
- no_blank_lines_after_throw
finder:
exclude:
- "tests"
name:
- "*.php"

24
vendor/eveseat/eseye/.travis.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
language: php
php:
- 7.2
- 7.3
before_script:
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- travis_retry composer self-update
- travis_retry composer install
notifications:
on_success: never
on_failure: always
addons:
code_climate:
repo_token: $CODE_CLIMATE_TOKEN
script:
- vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml
after_success:
- vendor/bin/test-reporter

339
vendor/eveseat/eseye/LICENSE vendored Normal file
View File

@@ -0,0 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{description}
Copyright (C) {year} {fullname}
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
{signature of Ty Coon}, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

38
vendor/eveseat/eseye/README.md vendored Normal file
View File

@@ -0,0 +1,38 @@
![SeAT](http://i.imgur.com/aPPOxSK.png)
[![Build Status](https://travis-ci.org/eveseat/eseye.svg?branch=master)](https://travis-ci.org/eveseat/eseye)
[![Code Climate](https://codeclimate.com/github/eveseat/eseye/badges/gpa.svg)](https://codeclimate.com/github/eveseat/eseye)
[![Test Coverage](https://codeclimate.com/github/eveseat/eseye/badges/coverage.svg)](https://codeclimate.com/github/eveseat/eseye/coverage)
[![Latest Stable Version](https://poser.pugx.org/eveseat/eseye/v/stable)](https://packagist.org/packages/eveseat/eseye)
[![Total Downloads](https://poser.pugx.org/eveseat/eseye/downloads)](https://packagist.org/packages/eveseat/eseye)
[![Latest Unstable Version](https://poser.pugx.org/eveseat/eseye/v/unstable)](https://packagist.org/packages/eveseat/eseye)
[![License](https://poser.pugx.org/eveseat/eseye/license)](https://packagist.org/packages/eseye/eveapi)
[![StyleCI](https://styleci.io/repos/78866259/shield?branch=master)](https://styleci.io/repos/78866259)
# eseye
👾 A Standalone, Dynamic ESI (EVE Swagger Interface) Client Library written in PHP
## example usage
Its supposed to be simple!
```php
// initialization stuff
$esi = new Eseye();
// Optionally, set the ESI endpoint version to use.
// If you dont set this, Eseye will use /latest
$esi->setVersion('v4');
// make a call
$character_info = $esi->invoke('get', '/characters/{character_id}/', [
'character_id' => 1477919642,
]);
// get data!
echo $character_info->name;
```
For a more complete usage example, please refer to [example.php](example.php)
## documentation
For up to date documentation, more examples and other goodies, please check out the [project wiki](https://github.com/eveseat/eseye/wiki)!

400
vendor/eveseat/eseye/bin/index.php vendored Normal file
View File

@@ -0,0 +1,400 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
// If you are reading this, prepare the eye bleach! This is absolutely
// some of the shittest PHP you will _ever_ read. It is mostly because
// we want to have everyting in a single file, making it easy to run
// using the tokenegenerator command. Still, its terrible, and I know.
session_start();
// Helpers
/**
* Redirect a request to the start of this script.
*/
function redirect_to_new()
{
header('Location: ' . $_SERVER['PHP_SELF'] . '?action=new');
die();
}
/**
* @return string
*/
function get_sso_callback_url()
{
if (! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
$protocol = 'https://';
else
$protocol = 'http://';
return $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?action=eveonlinecallback';
}
// UI Parts
/**
* @return string
*/
function get_header()
{
return <<<'EOF'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>New ESI Refresh Token</title>
<!-- Bootstrap core CSS -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Custom styles for this template -->
<style type='text/css'>.header,body{padding-bottom:20px}.header,.jumbotron{border-bottom:1px solid #e5e5e5}body{padding-top:20px}.footer,.header,.marketing{padding-right:15px;padding-left:15px}.header h3{margin-top:0;margin-bottom:0;line-height:40px}.footer{padding-top:19px;color:#777;border-top:1px solid #e5e5e5}@media (min-width:768px){.container{max-width:730px}}.container-narrow>hr{margin:30px 0}.jumbotron{text-align:center}.jumbotron .btn{padding:14px 24px;font-size:21px}.marketing{margin:40px 0}.marketing p+h4{margin-top:28px}@media screen and (min-width:768px){.footer,.header,.marketing{padding-right:0;padding-left:0}.header{margin-bottom:30px}.jumbotron{border-bottom:0}}</style>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="header clearfix">
<h3 class="text-muted">ESI Refresh Token Generator</h3>
</div>
EOF;
}
/**
* @return string
*/
function get_footer()
{
return <<<'EOF'
</div> <!-- /container -->
</body>
</html>
EOF;
}
// Page contents
/**
* Fresh, new login page.
*/
function new_login()
{
$action = $_SERVER['PHP_SELF'] . '?action=submitsecrets';
$callback = get_sso_callback_url();
echo get_header();
echo <<<EOF
<div class="jumbotron">
<p>
Create a new Application on the
<a href="https://developers.eveonline.com/applications/create" target="_blank">EVE Online Developers Site</a>.
Use the resultant <b>Client ID</b> and <b>Secret Key</b> in the form below.
</p>
<p>
The callback url to use in the application form is: <pre>$callback</pre>
</p>
</div>
<div class="row marketing">
<form action="$action" method="post" class="form-horizontal">
<fieldset>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="clientid">Client ID</label>
<div class="col-md-4">
<input id="clientid" name="clientid" type="text" placeholder="Client ID" class="form-control input-md">
<span class="help-block">ClientID From the EVE Online Developers Site</span>
</div>
</div>
<!-- Password input-->
<div class="form-group">
<label class="col-md-4 control-label" for="secret">Secret</label>
<div class="col-md-4">
<input id="secret" name="secret" type="password" placeholder="Secret" class="form-control input-md">
<span class="help-block">Secret From the EVE Online Developers Site</span>
</div>
</div>
<!-- Select Multiple -->
<div class="form-group">
<label class="col-md-4 control-label" for="scopes">Scopes</label>
<div class="col-md-4">
<select id="scopes" name="scopes[]" class="form-control" multiple="multiple">
<!-- in the tools directory, run: -->
<!-- php get_endpoints_and_scopes.php | grep "|" | cut -d"|" -f 3 | sort | uniq | grep -v public | awk '{ print "<option value=\"" $1 "\">" $1 "</option>"}' -->
<!-- done :D -->
<option value="esi-alliances.read_contacts.v1">esi-alliances.read_contacts.v1</option>
<option value="esi-assets.read_assets.v1">esi-assets.read_assets.v1</option>
<option value="esi-assets.read_corporation_assets.v1">esi-assets.read_corporation_assets.v1</option>
<option value="esi-bookmarks.read_character_bookmarks.v1">esi-bookmarks.read_character_bookmarks.v1</option>
<option value="esi-bookmarks.read_corporation_bookmarks.v1">esi-bookmarks.read_corporation_bookmarks.v1</option>
<option value="esi-calendar.read_calendar_events.v1">esi-calendar.read_calendar_events.v1</option>
<option value="esi-calendar.respond_calendar_events.v1">esi-calendar.respond_calendar_events.v1</option>
<option value="esi-characters.read_agents_research.v1">esi-characters.read_agents_research.v1</option>
<option value="esi-characters.read_blueprints.v1">esi-characters.read_blueprints.v1</option>
<option value="esi-characters.read_chat_channels.v1">esi-characters.read_chat_channels.v1</option>
<option value="esi-characters.read_contacts.v1">esi-characters.read_contacts.v1</option>
<option value="esi-characters.read_corporation_roles.v1">esi-characters.read_corporation_roles.v1</option>
<option value="esi-characters.read_fatigue.v1">esi-characters.read_fatigue.v1</option>
<option value="esi-characters.read_fw_stats.v1">esi-characters.read_fw_stats.v1</option>
<option value="esi-characters.read_loyalty.v1">esi-characters.read_loyalty.v1</option>
<option value="esi-characters.read_medals.v1">esi-characters.read_medals.v1</option>
<option value="esi-characters.read_notifications.v1">esi-characters.read_notifications.v1</option>
<option value="esi-characters.read_opportunities.v1">esi-characters.read_opportunities.v1</option>
<option value="esi-characters.read_standings.v1">esi-characters.read_standings.v1</option>
<option value="esi-characters.read_titles.v1">esi-characters.read_titles.v1</option>
<option value="esi-characters.write_contacts.v1">esi-characters.write_contacts.v1</option>
<option value="esi-characterstats.read.v1">esi-characterstats.read.v1</option>
<option value="esi-clones.read_clones.v1">esi-clones.read_clones.v1</option>
<option value="esi-clones.read_implants.v1">esi-clones.read_implants.v1</option>
<option value="esi-contracts.read_character_contracts.v1">esi-contracts.read_character_contracts.v1</option>
<option value="esi-contracts.read_corporation_contracts.v1">esi-contracts.read_corporation_contracts.v1</option>
<option value="esi-corporations.read_blueprints.v1">esi-corporations.read_blueprints.v1</option>
<option value="esi-corporations.read_contacts.v1">esi-corporations.read_contacts.v1</option>
<option value="esi-corporations.read_container_logs.v1">esi-corporations.read_container_logs.v1</option>
<option value="esi-corporations.read_corporation_membership.v1">esi-corporations.read_corporation_membership.v1</option>
<option value="esi-corporations.read_divisions.v1">esi-corporations.read_divisions.v1</option>
<option value="esi-corporations.read_facilities.v1">esi-corporations.read_facilities.v1</option>
<option value="esi-corporations.read_fw_stats.v1">esi-corporations.read_fw_stats.v1</option>
<option value="esi-corporations.read_medals.v1">esi-corporations.read_medals.v1</option>
<option value="esi-corporations.read_standings.v1">esi-corporations.read_standings.v1</option>
<option value="esi-corporations.read_starbases.v1">esi-corporations.read_starbases.v1</option>
<option value="esi-corporations.read_structures.v1">esi-corporations.read_structures.v1</option>
<option value="esi-corporations.read_titles.v1">esi-corporations.read_titles.v1</option>
<option value="esi-corporations.track_members.v1">esi-corporations.track_members.v1</option>
<option value="esi-corporations.write_structures.v1">esi-corporations.write_structures.v1</option>
<option value="esi-fittings.read_fittings.v1">esi-fittings.read_fittings.v1</option>
<option value="esi-fittings.write_fittings.v1">esi-fittings.write_fittings.v1</option>
<option value="esi-fleets.read_fleet.v1">esi-fleets.read_fleet.v1</option>
<option value="esi-fleets.write_fleet.v1">esi-fleets.write_fleet.v1</option>
<option value="esi-industry.read_character_jobs.v1">esi-industry.read_character_jobs.v1</option>
<option value="esi-industry.read_character_mining.v1">esi-industry.read_character_mining.v1</option>
<option value="esi-industry.read_corporation_jobs.v1">esi-industry.read_corporation_jobs.v1</option>
<option value="esi-industry.read_corporation_mining.v1">esi-industry.read_corporation_mining.v1</option>
<option value="esi-killmails.read_corporation_killmails.v1">esi-killmails.read_corporation_killmails.v1</option>
<option value="esi-killmails.read_killmails.v1">esi-killmails.read_killmails.v1</option>
<option value="esi-location.read_location.v1">esi-location.read_location.v1</option>
<option value="esi-location.read_online.v1">esi-location.read_online.v1</option>
<option value="esi-location.read_ship_type.v1">esi-location.read_ship_type.v1</option>
<option value="esi-mail.organize_mail.v1">esi-mail.organize_mail.v1</option>
<option value="esi-mail.read_mail.v1">esi-mail.read_mail.v1</option>
<option value="esi-mail.send_mail.v1">esi-mail.send_mail.v1</option>
<option value="esi-markets.read_character_orders.v1">esi-markets.read_character_orders.v1</option>
<option value="esi-markets.read_corporation_orders.v1">esi-markets.read_corporation_orders.v1</option>
<option value="esi-markets.structure_markets.v1">esi-markets.structure_markets.v1</option>
<option value="esi-planets.manage_planets.v1">esi-planets.manage_planets.v1</option>
<option value="esi-planets.read_customs_offices.v1">esi-planets.read_customs_offices.v1</option>
<option value="esi-search.search_structures.v1">esi-search.search_structures.v1</option>
<option value="esi-skills.read_skillqueue.v1">esi-skills.read_skillqueue.v1</option>
<option value="esi-skills.read_skills.v1">esi-skills.read_skills.v1</option>
<option value="esi-ui.open_window.v1">esi-ui.open_window.v1</option>
<option value="esi-ui.write_waypoint.v1">esi-ui.write_waypoint.v1</option>
<option value="esi-universe.read_structures.v1">esi-universe.read_structures.v1</option>
<option value="esi-wallet.read_character_wallet.v1">esi-wallet.read_character_wallet.v1</option>
<option value="esi-wallet.read_corporation_wallets.v1">esi-wallet.read_corporation_wallets.v1</option>
</select>
</div>
</div>
<!-- Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="login"></label>
<div class="col-md-4">
<button id="login" name="login" class="btn btn-primary">Generate Login</button>
</div>
</div>
</fieldset>
</form>
</div>
EOF;
echo get_footer();
}
/**
* @param $url
*/
function print_sso_url($url)
{
echo get_header();
echo <<<EOF
<div class="jumbotron">
<p>
Click the button below to login with your EVE Online account.<br>
<a href="$url">
<img src="https://images.contentful.com/idjq7aai9ylm/18BxKSXCymyqY4QKo8KwKe/c2bdded6118472dd587c8107f24104d7/EVE_SSO_Login_Buttons_Small_White.png?w=195&h=30" />
</a>
</p>
<p>
The generated URL is:
<pre>$url</pre>
</p>
</div>
EOF;
echo get_footer();
}
/**
* @param $access_token
* @param $refresh_token
*/
function print_tokens($access_token, $refresh_token)
{
$start_again_url = $_SERVER['PHP_SELF'] . '?action=new';
echo get_header();
echo <<<EOF
<div class="jumbotron">
<p>
Your current access token is: <pre>$access_token</pre><br>
Valid for ~20 minutes.
</p>
<p>
Your refresh token is: <pre>$refresh_token</pre><br>
Valid until you delete the app from your account
<a href="https://community.eveonline.com/support/third-party-applications/">here</a>.
</p>
<a class="btn btn-lg btn-success" href="$start_again_url" role="button">Start Again</a>
</div>
EOF;
echo get_footer();
}
// Ensure we have an action!
if (! isset($_GET['action']))
redirect_to_new();
// Worlds most caveman router!
// Decide where to go based on the value of 'action'
switch ($_GET['action']) {
// Display the form to create a new login.
case 'new':
$_SESSION['test'] = 'bob';
new_login();
break;
case 'submitsecrets':
// Ensure we got some values
if (! isset($_REQUEST['clientid']) ||
! isset($_REQUEST['secret']) ||
! isset($_REQUEST['scopes'])
) {
echo 'All fields are mandatory!<br>' . PHP_EOL;
echo '<a href="' . $_SERVER['PHP_SELF'] . '?action=new">Start again</a>';
die();
}
$_SESSION['clientid'] = $_REQUEST['clientid'];
$_SESSION['secret'] = $_REQUEST['secret'];
$_SESSION['state'] = uniqid();
// Generate the url with the requested scopes
$url = 'https://login.eveonline.com/v2/oauth/authorize/?response_type=code&redirect_uri=' .
urlencode(get_sso_callback_url()) . '&client_id=' .
$_SESSION['clientid'] . '&scope=' . implode(' ', $_REQUEST['scopes']) . ' &state=' . $_SESSION['state'];
// Print the HTML with the login button.
print_sso_url($url);
break;
case 'eveonlinecallback':
// Verify the state.
if ($_REQUEST['state'] != $_SESSION['state']) {
echo 'Invalid State! You will have to start again!<br>';
echo '<a href="' . $_SERVER['PHP_SELF'] . '?action=new">Start again</a>';
die();
}
// Clear the state value.
$_SESSION['state'] = null;
// Prep the authentication header.
$headers = [
'Authorization: Basic ' . base64_encode($_SESSION['clientid'] . ':' . $_SESSION['secret']),
'Content-Type: application/json',
];
// Seems like CCP does not mind JSON in the body. Yay.
$fields = json_encode([
'grant_type' => 'authorization_code',
'code' => $_REQUEST['code'],
]);
// Start a cURL session
$ch = curl_init('https://login.eveonline.com/v2/oauth/token');
curl_setopt_array($ch, [
CURLOPT_URL => 'https://login.eveonline.com/v2/oauth/token',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $fields,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERAGENT => 'eseye/tokengenerator',
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_SSL_CIPHER_LIST => 'TLSv1',
]);
$result = curl_exec($ch);
$data = json_decode($result);
print_tokens($data->access_token, $data->refresh_token);
break;
// If we dont know what 'action' to perform, then redirect.
default:
redirect_to_new();
break;
}

18
vendor/eveseat/eseye/bin/tokengenerator vendored Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# 2017 - Leon Jacobs
# Server the token generator app using PHP's builtin web server.
# Thanks: http://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within?answertab=votes#tab-top
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
php -S 127.0.0.1:9009 -t $DIR

43
vendor/eveseat/eseye/composer.json vendored Normal file
View File

@@ -0,0 +1,43 @@
{
"name": "eveseat/eseye",
"description": "A Standalone PHP ESI (EVE Swagger Interface) Client Library",
"type": "library",
"require": {
"php": ">= 7.2",
"ext-gmp": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"guzzlehttp/guzzle": "^6.2",
"nesbot/carbon": "^2.0",
"monolog/monolog": "^2.0",
"predis/predis": "^1.1",
"web-token/jwt-easy": "^2.1",
"web-token/jwt-signature-algorithm-hmac": "^2.1",
"web-token/jwt-signature-algorithm-rsa": "^2.1",
"web-token/jwt-signature-algorithm-ecdsa": "^2.1"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"mikey179/vfsstream": "~1",
"codeclimate/php-test-reporter": "dev-master"
},
"license": "GPL-2.0",
"authors": [
{
"name": "Leon Jacobs",
"email": "leonja511@gmail.com"
}
],
"autoload": {
"psr-4": {
"Seat\\Eseye\\": "src/"
},
"files": [
"src/Helpers/helpers.php"
]
},
"bin": [
"bin/tokengenerator"
]
}

74
vendor/eveseat/eseye/example.php vendored Normal file
View File

@@ -0,0 +1,74 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
include 'vendor/autoload.php';
use Seat\Eseye\Cache\NullCache;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiAuthentication;
use Seat\Eseye\Eseye;
// Disable all caching by setting the NullCache as the
// preferred cache handler. By default, Eseye will use the
// FileCache.
$configuration = Configuration::getInstance();
$configuration->cache = NullCache::class;
// Prepare an authentication container for ESI
$authentication = new EsiAuthentication([
'client_id' => 'SSO_CLIENT_ID',
'secret' => 'SSO_SECRET',
'refresh_token' => 'CHARACTER_REFRESH_TOKEN',
]);
// Instantiate a new ESI instance.
$esi = new Eseye($authentication);
// Get character information. This is a public call to the EVE
// Swagger Interface
$character_info = $esi->invoke('get', '/characters/{character_id}/', [
'character_id' => 1477919642,
]);
// Get the location information for a character. This is an authenticated
// call to the EVE Swagger Interface.
$location = $esi->invoke('get', '/characters/{character_id}/location/', [
'character_id' => 1477919642,
]);
$clones = $esi->invoke('get', '/characters/{character_id}/clones/', [
'character_id' => 1477919642,
]);
// Print some information from the calls we have made.
echo 'Character Name is: ' . $character_info->name . PHP_EOL;
echo 'Character was born: ' . carbon($character_info->birthday)
->diffForHumans() . PHP_EOL; // The 'carbon' helper is included in the package.
echo 'Home Solar System ID is: ' . $location->solar_system_id . PHP_EOL;
echo 'Home Station ID is: ' . $location->station_id . PHP_EOL;
echo 'You have the following clones: ' . PHP_EOL;
foreach ($clones->jump_clones as $jump_clone) {
echo 'Clone at a ' . $jump_clone->location_type .
' with ' . count($jump_clone->implants) . ' implants' . PHP_EOL;
}

17
vendor/eveseat/eseye/phpunit.xml vendored Normal file
View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true"
bootstrap="./vendor/autoload.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
</phpunit>

View File

@@ -0,0 +1,39 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Access;
/**
* Interface AccessInterface.
* @package Seat\Eseye\Access
*/
interface AccessInterface
{
/**
* @param string $method
* @param string $uri
* @param array $scopes
*
* @return bool|mixed
*/
public function can(string $method, string $uri, array $scopes): bool;
}

View File

@@ -0,0 +1,287 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Access;
use Seat\Eseye\Configuration;
/**
* Class CheckAccess.
* @package Seat\Eseye\Access
*/
class CheckAccess implements AccessInterface
{
/**
* @var array
*/
protected $scope_map = [
'get' => [
// 'meta' URI's. see: https://esi.evetech.net/ui/?version=meta
'/ping' => 'public',
// Generated using tools: php get_endpoints_and_scopes.php
'/alliances/{alliance_id}/' => 'public',
'/alliances/{alliance_id}/corporations/' => 'public',
'/alliances/names/' => 'public',
'/alliances/{alliance_id}/icons/' => 'public',
'/alliances/' => 'public',
'/characters/{character_id}/assets/' => 'esi-assets.read_assets.v1',
'/corporations/{corporation_id}/assets/' => 'esi-assets.read_corporation_assets.v1',
'/characters/{character_id}/bookmarks/' => 'esi-bookmarks.read_character_bookmarks.v1',
'/characters/{character_id}/bookmarks/folders/' => 'esi-bookmarks.read_character_bookmarks.v1',
'/corporations/{corporation_id}/bookmarks/' => 'esi-bookmarks.read_corporation_bookmarks.v1',
'/corporations/{corporation_id}/bookmarks/folders/' => 'esi-bookmarks.read_corporation_bookmarks.v1',
'/characters/{character_id}/calendar/' => 'esi-calendar.read_calendar_events.v1',
'/characters/{character_id}/calendar/{event_id}/' => 'esi-calendar.read_calendar_events.v1',
'/characters/{character_id}/calendar/{event_id}/attendees/' => 'esi-calendar.read_calendar_events.v1',
'/characters/{character_id}/stats/' => 'esi-characterstats.read.v1',
'/characters/{character_id}/' => 'public',
'/characters/names/' => 'public',
'/characters/{character_id}/portrait/' => 'public',
'/characters/{character_id}/corporationhistory/' => 'public',
'/characters/{character_id}/chat_channels/' => 'esi-characters.read_chat_channels.v1',
'/characters/{character_id}/medals/' => 'esi-characters.read_medals.v1',
'/characters/{character_id}/standings/' => 'esi-characters.read_standings.v1',
'/characters/{character_id}/agents_research/' => 'esi-characters.read_agents_research.v1',
'/characters/{character_id}/blueprints/' => 'esi-characters.read_blueprints.v1',
'/characters/{character_id}/fatigue/' => 'esi-characters.read_fatigue.v1',
'/characters/{character_id}/notifications/contacts/' => 'esi-characters.read_notifications.v1',
'/characters/{character_id}/notifications/' => 'esi-characters.read_notifications.v1',
'/characters/{character_id}/roles/' => 'esi-characters.read_corporation_roles.v1',
'/characters/{character_id}/titles/' => 'esi-characters.read_titles.v1',
'/characters/{character_id}/clones/' => 'esi-clones.read_clones.v1',
'/characters/{character_id}/implants/' => 'esi-clones.read_implants.v1',
'/characters/{character_id}/contacts/' => 'esi-characters.read_contacts.v1',
'/corporations/{corporation_id}/contacts/' => 'esi-corporations.read_contacts.v1',
'/alliances/{alliance_id}/contacts/' => 'esi-alliances.read_contacts.v1',
'/characters/{character_id}/contacts/labels/' => 'esi-characters.read_contacts.v1',
'/corporations/{corporation_id}/contacts/labels/' => 'esi-corporations.read_contacts.v1',
'/characters/{character_id}/contracts/' => 'esi-contracts.read_character_contracts.v1',
'/characters/{character_id}/contracts/{contract_id}/items/' => 'esi-contracts.read_character_contracts.v1',
'/characters/{character_id}/contracts/{contract_id}/bids/' => 'esi-contracts.read_character_contracts.v1',
'/corporations/{corporation_id}/contracts/' => 'esi-contracts.read_corporation_contracts.v1',
'/corporations/{corporation_id}/contracts/{contract_id}/items/' => 'esi-contracts.read_corporation_contracts.v1',
'/corporations/{corporation_id}/contracts/{contract_id}/bids/' => 'esi-contracts.read_corporation_contracts.v1',
'/corporations/{corporation_id}/shareholders/' => 'esi-wallet.read_corporation_wallets.v1',
'/corporations/{corporation_id}/' => 'public',
'/corporations/{corporation_id}/alliancehistory/' => 'public',
'/corporations/names/' => 'public',
'/corporations/{corporation_id}/members/' => 'esi-corporations.read_corporation_membership.v1',
'/corporations/{corporation_id}/roles/' => 'esi-corporations.read_corporation_membership.v1',
'/corporations/{corporation_id}/roles/history/' => 'esi-corporations.read_corporation_membership.v1',
'/corporations/{corporation_id}/icons/' => 'public',
'/corporations/npccorps/' => 'public',
'/corporations/{corporation_id}/structures/' => 'esi-corporations.read_structures.v1',
'/corporations/{corporation_id}/membertracking/' => 'esi-corporations.track_members.v1',
'/corporations/{corporation_id}/divisions/' => 'esi-corporations.read_divisions.v1',
'/corporations/{corporation_id}/members/limit/' => 'esi-corporations.track_members.v1',
'/corporations/{corporation_id}/titles/' => 'esi-corporations.read_titles.v1',
'/corporations/{corporation_id}/members/titles/' => 'esi-corporations.read_titles.v1',
'/corporations/{corporation_id}/blueprints/' => 'esi-corporations.read_blueprints.v1',
'/corporations/{corporation_id}/standings/' => 'esi-corporations.read_standings.v1',
'/corporations/{corporation_id}/starbases/' => 'esi-corporations.read_starbases.v1',
'/corporations/{corporation_id}/starbases/{starbase_id}/' => 'esi-corporations.read_starbases.v1',
'/corporations/{corporation_id}/containers/logs/' => 'esi-corporations.read_container_logs.v1',
'/corporations/{corporation_id}/facilities/' => 'esi-corporations.read_facilities.v1',
'/corporations/{corporation_id}/medals/' => 'esi-corporations.read_medals.v1',
'/corporations/{corporation_id}/medals/issued/' => 'esi-corporations.read_medals.v1',
'/dogma/attributes/' => 'public',
'/dogma/attributes/{attribute_id}/' => 'public',
'/dogma/effects/' => 'public',
'/dogma/effects/{effect_id}/' => 'public',
'/fw/wars/' => 'public',
'/fw/stats/' => 'public',
'/fw/systems/' => 'public',
'/fw/leaderboards/' => 'public',
'/fw/leaderboards/characters/' => 'public',
'/fw/leaderboards/corporations/' => 'public',
'/corporations/{corporation_id}/fw/stats/' => 'esi-corporations.read_fw_stats.v1',
'/characters/{character_id}/fw/stats/' => 'esi-characters.read_fw_stats.v1',
'/characters/{character_id}/fittings/' => 'esi-fittings.read_fittings.v1',
'/fleets/{fleet_id}/' => 'esi-fleets.read_fleet.v1',
'/characters/{character_id}/fleet/' => 'esi-fleets.read_fleet.v1',
'/fleets/{fleet_id}/members/' => 'esi-fleets.read_fleet.v1',
'/fleets/{fleet_id}/wings/' => 'esi-fleets.read_fleet.v1',
'/incursions/' => 'public',
'/industry/facilities/' => 'public',
'/industry/systems/' => 'public',
'/characters/{character_id}/industry/jobs/' => 'esi-industry.read_character_jobs.v1',
'/characters/{character_id}/mining/' => 'esi-industry.read_character_mining.v1',
'/corporation/{corporation_id}/mining/observers/' => 'esi-industry.read_corporation_mining.v1',
'/corporation/{corporation_id}/mining/observers/{observer_id}/' => 'esi-industry.read_corporation_mining.v1',
'/corporations/{corporation_id}/industry/jobs/' => 'esi-industry.read_corporation_jobs.v1',
'/corporation/{corporation_id}/mining/extractions/' => 'esi-industry.read_corporation_mining.v1',
'/insurance/prices/' => 'public',
'/killmails/{killmail_id}/{killmail_hash}/' => 'public',
'/characters/{character_id}/killmails/recent/' => 'esi-killmails.read_killmails.v1',
'/corporations/{corporation_id}/killmails/recent/' => 'esi-killmails.read_corporation_killmails.v1',
'/characters/{character_id}/location/' => 'esi-location.read_location.v1',
'/characters/{character_id}/ship/' => 'esi-location.read_ship_type.v1',
'/characters/{character_id}/online/' => 'esi-location.read_online.v1',
'/loyalty/stores/{corporation_id}/offers/' => 'public',
'/characters/{character_id}/loyalty/points/' => 'esi-characters.read_loyalty.v1',
'/characters/{character_id}/mail/' => 'esi-mail.read_mail.v1',
'/characters/{character_id}/mail/labels/' => 'esi-mail.read_mail.v1',
'/characters/{character_id}/mail/lists/' => 'esi-mail.read_mail.v1',
'/characters/{character_id}/mail/{mail_id}/' => 'esi-mail.read_mail.v1',
'/markets/prices/' => 'public',
'/markets/{region_id}/orders/' => 'public',
'/markets/{region_id}/history/' => 'public',
'/markets/structures/{structure_id}/' => 'esi-markets.structure_markets.v1',
'/markets/groups/' => 'public',
'/markets/groups/{market_group_id}/' => 'public',
'/characters/{character_id}/orders/' => 'esi-markets.read_character_orders.v1',
'/markets/{region_id}/types/' => 'public',
'/corporations/{corporation_id}/orders/' => 'esi-markets.read_corporation_orders.v1',
'/opportunities/groups/' => 'public',
'/opportunities/groups/{group_id}/' => 'public',
'/opportunities/tasks/' => 'public',
'/opportunities/tasks/{task_id}/' => 'public',
'/characters/{character_id}/opportunities/' => 'esi-characters.read_opportunities.v1',
'/characters/{character_id}/planets/' => 'esi-planets.manage_planets.v1',
'/characters/{character_id}/planets/{planet_id}/' => 'esi-planets.manage_planets.v1',
'/universe/schematics/{schematic_id}/' => 'public',
'/corporations/{corporation_id}/customs_offices/' => 'esi-planets.read_customs_offices.v1',
'/route/{origin}/{destination}/' => 'public',
'/characters/{character_id}/search/' => 'esi-search.search_structures.v1',
'/search/' => 'public',
'/characters/{character_id}/skillqueue/' => 'esi-skills.read_skillqueue.v1',
'/characters/{character_id}/skills/' => 'esi-skills.read_skills.v1',
'/characters/{character_id}/attributes/' => 'esi-skills.read_skills.v1',
'/sovereignty/structures/' => 'public',
'/sovereignty/campaigns/' => 'public',
'/sovereignty/map/' => 'public',
'/status/' => 'public',
'/universe/planets/{planet_id}/' => 'public',
'/universe/stations/{station_id}/' => 'public',
'/universe/structures/{structure_id}/' => 'esi-universe.read_structures.v1',
'/universe/systems/{system_id}/' => 'public',
'/universe/systems/' => 'public',
'/universe/types/{type_id}/' => 'public',
'/universe/types/' => 'public',
'/universe/groups/' => 'public',
'/universe/groups/{group_id}/' => 'public',
'/universe/categories/' => 'public',
'/universe/categories/{category_id}/' => 'public',
'/universe/structures/' => 'public',
'/universe/races/' => 'public',
'/universe/factions/' => 'public',
'/universe/bloodlines/' => 'public',
'/universe/regions/' => 'public',
'/universe/regions/{region_id}/' => 'public',
'/universe/constellations/' => 'public',
'/universe/constellations/{constellation_id}/' => 'public',
'/universe/moons/{moon_id}/' => 'public',
'/universe/stargates/{stargate_id}/' => 'public',
'/universe/graphics/' => 'public',
'/universe/graphics/{graphic_id}/' => 'public',
'/universe/system_jumps/' => 'public',
'/universe/system_kills/' => 'public',
'/universe/stars/{star_id}/' => 'public',
'/characters/{character_id}/wallet/' => 'esi-wallet.read_character_wallet.v1',
'/characters/{character_id}/wallet/journal/' => 'esi-wallet.read_character_wallet.v1',
'/characters/{character_id}/wallet/transactions/' => 'esi-wallet.read_character_wallet.v1',
'/corporations/{corporation_id}/wallets/' => 'esi-wallet.read_corporation_wallets.v1',
'/corporations/{corporation_id}/wallets/{division}/journal/' => 'esi-wallet.read_corporation_wallets.v1',
'/corporations/{corporation_id}/wallets/{division}/transactions/' => 'esi-wallet.read_corporation_wallets.v1',
'/wars/' => 'public',
'/wars/{war_id}/' => 'public',
'/wars/{war_id}/killmails/' => 'public',
],
'post' => [
'/characters/{character_id}/assets/names/' => 'esi-assets.read_assets.v1',
'/characters/{character_id}/assets/locations/' => 'esi-assets.read_assets.v1',
'/corporations/{corporation_id}/assets/names/' => 'esi-assets.read_corporation_assets.v1',
'/corporations/{corporation_id}/assets/locations/' => 'esi-assets.read_corporation_assets.v1',
'/characters/affiliation/' => 'public',
'/characters/{character_id}/cspa/' => 'esi-characters.read_contacts.v1',
'/characters/{character_id}/contacts/' => 'esi-characters.write_contacts.v1',
'/characters/{character_id}/fittings/' => 'esi-fittings.write_fittings.v1',
'/fleets/{fleet_id}/members/' => 'esi-fleets.write_fleet.v1',
'/fleets/{fleet_id}/wings/' => 'esi-fleets.write_fleet.v1',
'/fleets/{fleet_id}/wings/{wing_id}/squads/' => 'esi-fleets.write_fleet.v1',
'/characters/{character_id}/mail/' => 'esi-mail.send_mail.v1',
'/characters/{character_id}/mail/labels/' => 'esi-mail.organize_mail.v1',
'/universe/names/' => 'public',
'/universe/ids/' => 'public',
'/ui/openwindow/marketdetails/' => 'esi-ui.open_window.v1',
'/ui/openwindow/contract/' => 'esi-ui.open_window.v1',
'/ui/openwindow/information/' => 'esi-ui.open_window.v1',
'/ui/autopilot/waypoint/' => 'esi-ui.write_waypoint.v1',
'/ui/openwindow/newmail/' => 'esi-ui.open_window.v1',
],
'put' => [
'/characters/{character_id}/calendar/{event_id}/' => 'esi-calendar.respond_calendar_events.v1',
'/characters/{character_id}/contacts/' => 'esi-characters.write_contacts.v1',
'/corporations/{corporation_id}/structures/{structure_id}/' => 'esi-corporations.write_structures.v1',
'/fleets/{fleet_id}/' => 'esi-fleets.write_fleet.v1',
'/fleets/{fleet_id}/members/{member_id}/' => 'esi-fleets.write_fleet.v1',
'/fleets/{fleet_id}/wings/{wing_id}/' => 'esi-fleets.write_fleet.v1',
'/fleets/{fleet_id}/squads/{squad_id}/' => 'esi-fleets.write_fleet.v1',
'/characters/{character_id}/mail/{mail_id}/' => 'esi-mail.organize_mail.v1',
],
'delete' => [
'/characters/{character_id}/contacts/' => 'esi-characters.write_contacts.v1',
'/characters/{character_id}/fittings/{fitting_id}/' => 'esi-fittings.write_fittings.v1',
'/fleets/{fleet_id}/members/{member_id}/' => 'esi-fleets.write_fleet.v1',
'/fleets/{fleet_id}/wings/{wing_id}/' => 'esi-fleets.write_fleet.v1',
'/fleets/{fleet_id}/squads/{squad_id}/' => 'esi-fleets.write_fleet.v1',
'/characters/{character_id}/mail/labels/{label_id}/' => 'esi-mail.organize_mail.v1',
'/characters/{character_id}/mail/{mail_id}/' => 'esi-mail.organize_mail.v1',
],
'patch' => [
],
];
/**
* @param string $method
* @param string $uri
* @param array $scopes
*
* @return bool|mixed
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function can(string $method, string $uri, array $scopes): bool
{
if (! array_key_exists($uri, $this->scope_map[$method])) {
Configuration::getInstance()->getLogger()
->warning('An unknown URI was called. Allowing ' . $uri);
return true;
}
$required_scope = $this->scope_map[$method][$uri];
// Public scopes require no authentication!
if ($required_scope == 'public')
return true;
if (! in_array($required_scope, $scopes))
return false;
return true;
}
}

View File

@@ -0,0 +1,65 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Cache;
use Seat\Eseye\Containers\EsiResponse;
/**
* Interface CacheInterface.
* @package Seat\Eseye\Cache
*/
interface CacheInterface
{
/**
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
*
* @return mixed
*/
public function set(string $uri, string $query, EsiResponse $data);
/**
* @param string $uri
* @param string $query
*
* @return \Seat\Eseye\Containers\EsiResponse|bool
*/
public function get(string $uri, string $query = '');
/**
* @param string $uri
* @param string $query
*
* @return mixed
*/
public function forget(string $uri, string $query = '');
/**
* @param string $uri
* @param string $query
*
* @return bool|mixed
*/
public function has(string $uri, string $query = ''): bool;
}

View File

@@ -0,0 +1,207 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Cache;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiResponse;
use Seat\Eseye\Exceptions\CachePathException;
/**
* Class FileCache.
* @package Seat\Eseye\Cache
*/
class FileCache implements CacheInterface
{
use HashesStrings;
/**
* @var string
*/
protected $cache_path;
/**
* @var string
*/
protected $results_filename = 'results.cache';
/**
* FileCache constructor.
* @throws \Seat\Eseye\Exceptions\CachePathException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function __construct()
{
$this->cache_path = Configuration::getInstance()
->file_cache_location;
// Ensure the cache directory is OK
$this->checkCacheDirectory();
}
/**
* @return bool
* @throws \Seat\Eseye\Exceptions\CachePathException
*/
public function checkCacheDirectory()
{
// Ensure the cache path exists
if (! is_dir($this->cache_path) &&
! @mkdir($this->cache_path, 0775, true)
) {
throw new CachePathException(
'Unable to create cache directory ' . $this->cache_path);
}
// Ensure the cache directory is readable/writable
if (! is_readable($this->cache_path) ||
! is_writable($this->cache_path)
) {
if (! chmod($this->getCachePath(), 0775))
throw new CachePathException(
$this->cache_path . ' must be readable and writable');
}
return true;
}
/**
* @return string
*/
public function getCachePath(): string
{
return $this->cache_path;
}
/**
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
*
* @return mixed|void
*/
public function set(string $uri, string $query, EsiResponse $data)
{
$path = $this->buildRelativePath($this->safePath($uri), $query);
// Create the subpath if that does not already exist
if (! file_exists($path))
@mkdir($path, 0775, true);
// Dump the contents to file
file_put_contents($path . $this->results_filename, serialize($data));
}
/**
* @param string $path
* @param string $query
*
* @return string
*/
public function buildRelativePath(string $path, string $query = ''): string
{
// If the query string has data, hash it.
if ($query != '')
$query = $this->hashString($query);
return rtrim(rtrim($this->cache_path, '/') . rtrim($path), '/') .
'/' . $query . '/';
}
/**
* @param string $uri
*
* @return string
*/
public function safePath(string $uri): string
{
return preg_replace('/[^A-Za-z0-9\/]/', '', $uri);
}
/**
* @param string $uri
* @param string $query
*
* @return bool|mixed
*/
public function has(string $uri, string $query = ''): bool
{
if ($status = $this->get($uri, $query))
return true;
return false;
}
/**
* @param string $uri
* @param string $query
*
* @return \Seat\Eseye\Containers\EsiResponse|bool
*/
public function get(string $uri, string $query = '')
{
$path = $this->buildRelativePath($this->safePath($uri), $query);
$cache_file_path = $path . $this->results_filename;
// If we cant read from the cache, then just return false.
if (! is_readable($cache_file_path))
return false;
// Get the data from the file and unserialize it
$data = unserialize(file_get_contents($cache_file_path));
// If the cached entry is expired and does not have any ETag, remove it.
if ($data->expired() && ! $data->hasHeader('ETag')) {
$this->forget($uri, $query);
return false;
}
return $data;
}
/**
* @param string $uri
* @param string $query
*
* @return void
*/
public function forget(string $uri, string $query = '')
{
$path = $this->buildRelativePath($uri, $query);
$cache_file_path = $path . $this->results_filename;
@unlink($cache_file_path);
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Cache;
/**
* Class HashesStrings.
* @package Seat\Eseye\Cache
*/
trait HashesStrings
{
/**
* @param string $string
*
* @return string
*/
public function hashString(string $string)
{
return sha1($string);
}
}

View File

@@ -0,0 +1,169 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Cache;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiResponse;
/**
* Class MemcachedCache.
* @package Seat\Eseye\Cache
*/
class MemcachedCache implements CacheInterface
{
use HashesStrings;
/**
* @var mixed
*/
protected $prefix;
/**
* @var bool
*/
protected $is_memcached;
/**
* @var \Memcache
*/
protected $memcached;
/**
* @var int
*/
protected $flags;
/**
* MemcachedCache constructor.
*
* @param null $instance
*
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function __construct($instance = null)
{
if ($instance != null)
$this->memcached = $instance;
$this->is_memcached = class_exists('Memcached', false);
$configuration = Configuration::getInstance();
$this->prefix = $configuration->memcached_cache_prefix;
if (is_null($this->memcached)) {
if ($this->is_memcached)
$this->memcached = new \Memcached();
else
$this->memcached = new \Memcache();
$this->memcached->addServer($configuration->memcached_cache_host, $configuration->memcached_cache_port, 0);
if ($this->is_memcached)
$this->memcached->setOption(\Memcached::OPT_COMPRESSION, ($configuration->memcached_cache_compressed));
else
$this->flags = ($configuration->memcached_cache_compressed) ? MEMCACHE_COMPRESSED : 0;
}
}
/**
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
*
* @return void
*/
public function set(string $uri, string $query, EsiResponse $data)
{
if ($this->is_memcached)
$this->memcached->set($this->buildCacheKey($uri, $query), serialize($data), 0);
else
$this->memcached->set($this->buildCacheKey($uri, $query), serialize($data), $this->flags, 0);
}
/**
* @param string $uri
* @param string $query
*
* @return string
*/
public function buildCacheKey(string $uri, string $query = ''): string
{
if ($query != '')
$query = $this->hashString($query);
return $this->prefix . $this->hashString($uri . $query);
}
/**
* @param string $uri
* @param string $query
*
* @return \Seat\Eseye\Containers\EsiResponse|bool
*/
public function get(string $uri, string $query = '')
{
$value = $this->memcached->get($this->buildCacheKey($uri, $query));
if ($value === false)
return false;
$data = unserialize($value);
// If the cached entry is expired and does not have any ETag, remove it.
if ($data->expired() && ! $data->hasHeader('ETag')) {
$this->forget($uri, $query);
return false;
}
return $data;
}
/**
* @param string $uri
* @param string $query
*
* @return mixed
*/
public function forget(string $uri, string $query = '')
{
return $this->memcached->delete($this->buildCacheKey($uri, $query));
}
/**
* @param string $uri
* @param string $query
*
* @return bool|mixed
*/
public function has(string $uri, string $query = ''): bool
{
return $this->memcached->get($this->buildCacheKey($uri, $query)) !== false;
}
}

View File

@@ -0,0 +1,79 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Cache;
use Seat\Eseye\Containers\EsiResponse;
/**
* Class NullCache.
* @package Seat\Eseye\Cache
*/
class NullCache implements CacheInterface
{
/**
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
*
* @return mixed
*/
public function set(string $uri, string $query, EsiResponse $data)
{
}
/**
* @param string $uri
* @param string $query
*
* @return \Seat\Eseye\Containers\EsiResponse|bool
*/
public function get(string $uri, string $query = '')
{
return false;
}
/**
* @param string $uri
* @param string $query
*
* @return mixed
*/
public function forget(string $uri, string $query = '')
{
}
/**
* @param string $uri
* @param string $query
*
* @return bool|mixed
*/
public function has(string $uri, string $query = ''): bool
{
return false;
}
}

View File

@@ -0,0 +1,146 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Cache;
use Predis\Client;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiResponse;
/**
* Class RedisCache.
* @package Seat\Eseye\Cache
*/
class RedisCache implements CacheInterface
{
use HashesStrings;
/**
* @var \Predis\Client
*/
protected $redis;
/**
* RedisCache constructor.
*
* @param \Predis\Client $redis
*
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function __construct(Client $redis = null)
{
// If we didn't get a Redis instance in the constructor,
// build a new one.
if (is_null($redis)) {
$configuration = Configuration::getInstance();
$this->redis = new Client($configuration->redis_cache_location, [
'prefix' => $configuration->redis_cache_prefix,
]);
return;
}
$this->redis = $redis;
}
/**
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
*
* @return void
*/
public function set(string $uri, string $query, EsiResponse $data)
{
$this->redis->set($this->buildCacheKey($uri, $query), serialize($data));
}
/**
* @param string $uri
* @param string $query
*
* @return string
*/
public function buildCacheKey(string $uri, string $query = ''): string
{
if ($query != '')
$query = $this->hashString($query);
return $this->hashString($uri . $query);
}
/**
* @param string $uri
* @param string $query
*
* @return \Seat\Eseye\Containers\EsiResponse|bool
*/
public function get(string $uri, string $query = '')
{
if (! $this->has($uri, $query))
return false;
$data = unserialize($this->redis
->get($this->buildCacheKey($uri, $query)));
// If the cached entry is expired and does not have any ETag, remove it.
if ($data->expired() && ! $data->hasHeader('ETag')) {
$this->forget($uri, $query);
return false;
}
return $data;
}
/**
* @param string $uri
* @param string $query
*
* @return bool|mixed
*/
public function has(string $uri, string $query = ''): bool
{
return $this->redis->exists($this->buildCacheKey($uri, $query));
}
/**
* @param string $uri
* @param string $query
*
* @return mixed
*/
public function forget(string $uri, string $query = '')
{
return $this->redis->del([$this->buildCacheKey($uri, $query)]);
}
}

View File

@@ -0,0 +1,71 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Checker\Claim;
use Jose\Component\Checker\ClaimChecker;
use Jose\Component\Checker\InvalidClaimException;
/**
* Class AzpChecker.
*
* @package Seat\Web\Extentions\Socialite\EveOnline\Checker\Claim
*/
class AzpChecker implements ClaimChecker
{
private const NAME = 'azp';
/**
* @var string
*/
private $client_id;
/**
* AzpChecker constructor.
*
* @param string $client_id
*/
public function __construct(string $client_id)
{
$this->client_id = $client_id;
}
/**
* {@inheritdoc}
*/
public function checkClaim($value): void
{
if (! is_string($value))
throw new InvalidClaimException('"azp" must be a string.', self::NAME, $value);
if ($value !== $this->client_id)
throw new InvalidClaimException('"azp" must match the originating application.', self::NAME, $value);
}
/**
* {@inheritdoc}
*/
public function supportedClaim(): string
{
return self::NAME;
}
}

View File

@@ -0,0 +1,53 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Checker\Claim;
use Jose\Component\Checker\ClaimChecker;
use Jose\Component\Checker\InvalidClaimException;
/**
* Class NameChecker.
*
* @package Seat\Web\Extentions\Socialite\EveOnline\Checker\Claim
*/
class NameChecker implements ClaimChecker
{
private const NAME = 'name';
/**
* {@inheritdoc}
*/
public function checkClaim($value): void
{
if (! is_string($value))
throw new InvalidClaimException('"name" must be a string.', self::NAME, $value);
}
/**
* {@inheritdoc}
*/
public function supportedClaim(): string
{
return self::NAME;
}
}

View File

@@ -0,0 +1,53 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Checker\Claim;
use Jose\Component\Checker\ClaimChecker;
use Jose\Component\Checker\InvalidClaimException;
/**
* Class OwnerChecker.
*
* @package Seat\Web\Extentions\Socialite\EveOnline\Checker\Claim
*/
class OwnerChecker implements ClaimChecker
{
private const NAME = 'owner';
/**
* {@inheritdoc}
*/
public function checkClaim($value): void
{
if (! is_string($value))
throw new InvalidClaimException('"owner" must be a string.', self::NAME, $value);
}
/**
* {@inheritdoc}
*/
public function supportedClaim(): string
{
return self::NAME;
}
}

View File

@@ -0,0 +1,56 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Checker\Claim;
use Jose\Component\Checker\ClaimChecker;
use Jose\Component\Checker\InvalidClaimException;
/**
* Class SubEveCharacterChecker.
*
* @package Seat\Services\Socialite\EveOnline\Checker\Claim
*/
class SubEveCharacterChecker implements ClaimChecker
{
private const NAME = 'sub';
/**
* {@inheritdoc}
*/
public function checkClaim($value): void
{
if (! is_string($value))
throw new InvalidClaimException('"sub" must be a string.', self::NAME, $value);
if (preg_match('/^CHARACTER:EVE:[0-9]+$/', $value) !== 1)
throw new InvalidClaimException('"sub" must be of the form CHARACTER:EVE:{character_id}', self::NAME, $value);
}
/**
* {@inheritdoc}
*/
public function supportedClaim(): string
{
return self::NAME;
}
}

View File

@@ -0,0 +1,86 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Checker\Header;
use Jose\Component\Checker\HeaderChecker;
use Jose\Component\Checker\InvalidHeaderException;
/**
* Class TypeChecker.
*
* @package Seat\Web\Extentions\Socialite\EveOnline\Checker
*/
final class TypeChecker implements HeaderChecker
{
private const HEADER_NAME = 'typ';
/**
* @var bool
*/
private $protected_header = true;
/**
* @var string[]
*/
private $supported_types;
/**
* TypeChecker constructor.
*
* @param string[] $supported_types
* @param bool $protected_header
*/
public function __construct(array $supported_types, bool $protected_header = true)
{
$this->supported_types = $supported_types;
$this->protected_header = $protected_header;
}
/**
* {@inheritdoc}
*/
public function checkHeader($value): void
{
if (! is_string($value))
throw new InvalidHeaderException('"typ" must be a string.', self::HEADER_NAME, $value);
if (! in_array($value, $this->supported_types, true))
throw new InvalidHeaderException('Unsupported type.', self::HEADER_NAME, $value);
}
/**
* {@inheritdoc}
*/
public function supportedHeader(): string
{
return self::HEADER_NAME;
}
/**
* {@inheritdoc}
*/
public function protectedHeaderOnly(): bool
{
return $this->protected_header;
}
}

View File

@@ -0,0 +1,153 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye;
use Seat\Eseye\Cache\CacheInterface;
use Seat\Eseye\Containers\EsiConfiguration;
use Seat\Eseye\Exceptions\InvalidConfigurationException;
use Seat\Eseye\Log\LogInterface;
/**
* Class Configuration.
* @package Seat\Eseye
*/
class Configuration
{
/**
* @var Configuration
*/
private static $instance;
/**
* @var LogInterface
*/
protected $logger;
/**
* @var CacheInterface
*/
protected $cache;
/**
* @var EsiConfiguration
*/
protected $configuration;
/**
* Configuration constructor.
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function __construct()
{
$this->configuration = new EsiConfiguration;
}
/**
* @return \Seat\Eseye\Configuration
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public static function getInstance(): self
{
if (is_null(self::$instance))
self::$instance = new self();
return self::$instance;
}
/**
* @return \Seat\Eseye\Containers\EsiConfiguration
*/
public function getConfiguration()
{
return $this->configuration;
}
/**
* @param \Seat\Eseye\Containers\EsiConfiguration $configuration
*
* @throws \Seat\Eseye\Exceptions\InvalidConfigurationException
*/
public function setConfiguration(EsiConfiguration $configuration)
{
if (! $configuration->valid())
throw new InvalidConfigurationException(
'The configuration is empty/invalid values');
$this->configuration = $configuration;
}
/**
* @return \Seat\Eseye\Log\LogInterface
*/
public function getLogger(): LogInterface
{
if (! $this->logger)
$this->logger = new $this->configuration->logger;
return $this->logger;
}
/**
* @return \Seat\Eseye\Cache\CacheInterface
*/
public function getCache(): CacheInterface
{
if (! $this->cache)
$this->cache = new $this->configuration->cache;
return $this->cache;
}
/**
* Magic method to get the configuration from the configuration
* property.
*
* @param $name
*
* @return mixed
*/
public function __get(string $name)
{
return $this->configuration->$name;
}
/**
* @param string $name
* @param string $value
*
* @return string
*/
public function __set(string $name, string $value)
{
return $this->configuration->$name = $value;
}
}

View File

@@ -0,0 +1,98 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Containers;
/**
* Class AbstractArrayAccess.
* @package Seat\Eseye\Containers
*/
abstract class AbstractArrayAccess implements \ArrayAccess
{
/**
* @var
*/
protected $data;
/**
* @param mixed $offset
*
* @return bool
*/
public function offsetExists($offset)
{
return array_key_exists($offset, $this->data);
}
/**
* @param mixed $offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return $this->data[$offset];
}
/**
* @param mixed $offset
* @param mixed $value
*/
public function offsetSet($offset, $value)
{
$this->data[$offset] = $value;
}
/**
* @param mixed $offset
*/
public function offsetUnset($offset)
{
unset($this->data[$offset]);
}
/**
* @param $key
*
* @return mixed
*/
public function __get($key)
{
return $this[$key];
}
/**
* @param $key
* @param $val
*/
public function __set($key, $val)
{
$this[$key] = $val;
}
}

View File

@@ -0,0 +1,56 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Containers;
use Seat\Eseye\Traits\ConstructsContainers;
use Seat\Eseye\Traits\ValidatesContainers;
/**
* Class EsiAuthentication.
* @package Seat\Eseye\Containers
*/
class EsiAuthentication extends AbstractArrayAccess
{
use ConstructsContainers, ValidatesContainers;
/**
* @var array
*/
protected $data = [
'client_id' => null,
'secret' => null,
'access_token' => '_',
'refresh_token' => null,
'token_expires' => '1970-01-01 00:00:00',
'scopes' => [],
];
public function setRefreshToken(string $refreshToken): self
{
$this->data['refresh_token'] = $refreshToken;
return $this;
}
}

View File

@@ -0,0 +1,85 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Containers;
use Seat\Eseye\Cache\FileCache;
use Seat\Eseye\Fetchers\GuzzleFetcher;
use Seat\Eseye\Log\RotatingFileLogger;
use Seat\Eseye\Traits\ConstructsContainers;
use Seat\Eseye\Traits\ValidatesContainers;
/**
* Class EsiConfiguration.
* @package Seat\Eseye\Containers
*/
class EsiConfiguration extends AbstractArrayAccess
{
use ConstructsContainers, ValidatesContainers;
/**
* @var array
*/
protected $data = [
'http_user_agent' => 'Eseye Default Library',
// Esi
'datasource' => 'tranquility',
'esi_scheme' => 'https',
'esi_host' => 'esi.evetech.net',
'esi_port' => 443,
// Eve Online SSO
'sso_scheme' => 'https',
'sso_host' => 'login.eveonline.com',
'sso_port' => 443,
// Fetcher
'fetcher' => GuzzleFetcher::class,
// Logging
'logger' => RotatingFileLogger::class,
'logger_level' => 'info',
'logfile_location' => 'logs/',
// Rotating Logger Details
'log_max_files' => 10,
// Cache
'cache' => FileCache::class,
// File Cache
'file_cache_location' => 'cache/',
// Redis Cache
'redis_cache_location' => 'tcp://127.0.0.1',
'redis_cache_prefix' => 'eseye:',
// Memcached Cache
'memcached_cache_host' => '127.0.0.1',
'memcached_cache_port' => '11211',
'memcached_cache_prefix' => 'eseye:',
'memcached_cache_compressed' => false,
];
}

View File

@@ -0,0 +1,294 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Containers;
use ArrayObject;
use Carbon\Carbon;
/**
* Class EsiResponse.
* @package Seat\Eseye\Containers
*/
class EsiResponse extends ArrayObject
{
/**
* @var string
*/
public $raw;
/**
* @var array
*/
public $headers;
/**
* @var array
*/
public $raw_headers;
/**
* @var int
*/
public $error_limit;
/**
* @var int
*/
public $pages;
/**
* @var array
*/
protected $expires_at;
/**
* @var string
*/
protected $response_code;
/**
* @var mixed
*/
protected $error_message;
/**
* @var mixed
*/
protected $optional_return;
/**
* @var bool
*/
protected $cached_load = false;
/**
* EsiResponse constructor.
*
* @param string $data
* @param array $headers
* @param string $expires
* @param int $response_code
*/
public function __construct(
string $data, array $headers, string $expires, int $response_code)
{
// set the raw data to the raw property
$this->raw = $data;
// Normalize and parse the response headers
$this->parseHeaders($headers);
// decode and create an object from the data
$data = json_decode($data);
// Ensure that the value for 'expires' is longer than
// 2 characters. The shortest expected value is 'now'. If it
// is not longer than 2 characters it might be empty.
$this->expires_at = strlen($expires) > 2 ? $expires : 'now';
$this->response_code = $response_code;
if (is_object($data)) {
// If there is an error, set that.
if (property_exists($data, 'error'))
$this->error_message = $data->error;
// If there is an error description, set that.
if (property_exists($data, 'error_description'))
$this->error_message .= ': ' . $data->error_description;
}
// Run the parent constructor
parent::__construct(is_array($data) ? (array) $data : (object) $data, ArrayObject::ARRAY_AS_PROPS);
}
/**
* Parse an array of header key value pairs.
*
* Interesting header values such as X-Esi-Error-Limit-Remain
* and X-Pages are automatically mapped to properties in this
* object.
*
* @param array $headers
*/
private function parseHeaders(array $headers)
{
// Set the raw headers as we got from the constructor.
$this->raw_headers = $headers;
// flatten the headers array so that values are not arrays themselves
// but rather simple key value pairs.
$headers = array_map(function ($value) {
if (! is_array($value))
return $value;
return implode(';', $value);
}, $headers);
// Set the parsed headers.
$this->headers = $headers;
// Check for some header values that might be interesting
// such as the current error limit and number of pages
// available.
$this->hasHeader('X-Esi-Error-Limit-Remain') ?
$this->error_limit = (int) $this->getHeader('X-Esi-Error-Limit-Remain') : null;
$this->hasHeader('X-Pages') ? $this->pages = (int) $this->getHeader('X-Pages') : null;
}
/**
* A helper method when a key might not exist within the
* response object.
*
* @param string $index
*
* @return mixed
*/
public function optional(string $index)
{
if (! $this->offsetExists($index))
return null;
return $this->$index;
}
/**
* Determine if this containers data should be considered
* expired.
*
* Expiry is calculated by taking the expiry time and comparing
* that to the local time. Before comparison though, the local
* time is converted to the timezone in which the expiry time
* is recorded. The resultant local time is then checked to
* ensure that the expiry is not less than local time.
*
* @return bool
*/
public function expired(): bool
{
if ($this->expires()->lte(
carbon()->now($this->expires()->timezoneName))
)
return true;
return false;
}
/**
* @return \Carbon\Carbon
*/
public function expires(): Carbon
{
return carbon($this->expires_at);
}
/**
* @return null|string
*/
public function error()
{
return $this->error_message;
}
/**
* @return int
*/
public function getErrorCode(): int
{
return $this->response_code;
}
/**
* @return bool
*/
public function setIsCachedLoad(): bool
{
return $this->cached_load = true;
}
/**
* @return bool
*/
public function isCachedLoad(): bool
{
return $this->cached_load;
}
/**
* @param string $name
* @return bool
*/
public function hasHeader(string $name)
{
// turn headers into case insensitive array
$key_map = array_change_key_case($this->headers, CASE_LOWER);
// track for the requested header name
return array_key_exists(strtolower($name), $key_map);
}
/**
* @param string $name
* @return mixed|null
*/
public function getHeader(string $name)
{
// turn header name into case insensitive
$insensitive_key = strtolower($name);
// turn headers into case insensitive array
$key_map = array_change_key_case($this->headers, CASE_LOWER);
// track for the requested header name and return its value if exists
if (array_key_exists($insensitive_key, $key_map))
return $key_map[$insensitive_key];
return null;
}
/**
* @param \Carbon\Carbon $date
*/
public function setExpires(Carbon $date)
{
// turn headers into case insensitive array
$key_map = array_change_key_case($this->headers, CASE_LOWER);
// update expires header with provided date
$key_map['expires'] = $date->toRfc7231String();
$this->expires_at = strlen($key_map['expires']) > 2 ? $key_map['expires'] : 'now';
$this->headers = $key_map;
}
}

544
vendor/eveseat/eseye/src/Eseye.php vendored Normal file
View File

@@ -0,0 +1,544 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye;
use GuzzleHttp\Psr7\Uri;
use Seat\Eseye\Access\AccessInterface;
use Seat\Eseye\Access\CheckAccess;
use Seat\Eseye\Cache\CacheInterface;
use Seat\Eseye\Containers\EsiAuthentication;
use Seat\Eseye\Containers\EsiResponse;
use Seat\Eseye\Exceptions\EsiScopeAccessDeniedException;
use Seat\Eseye\Exceptions\InvalidAuthenticationException;
use Seat\Eseye\Exceptions\InvalidContainerDataException;
use Seat\Eseye\Exceptions\UriDataMissingException;
use Seat\Eseye\Fetchers\FetcherInterface;
use Seat\Eseye\Log\LogInterface;
/**
* Class Eseye.
* @package Seat\Eseye
*/
class Eseye
{
/**
* The Eseye Version.
*/
const VERSION = '2.3.0';
/**
* @var \Seat\Eseye\Containers\EsiAuthentication
*/
protected $authentication;
/**
* @var
*/
protected $fetcher;
/**
* @var
*/
protected $cache;
/**
* @var \Seat\Eseye\Log\LogInterface
*/
protected $logger;
/**
* @var
*/
protected $access_checker;
/**
* @var array
*/
protected $query_string = [];
/**
* @var array
*/
protected $request_body = [];
/**
* @var string
*/
protected $version = '/latest';
/**
* HTTP verbs that could have their responses cached.
*
* @var array
*/
protected $cachable_verb = ['get'];
/**
* Eseye constructor.
*
* @param \Seat\Eseye\Containers\EsiAuthentication $authentication
*
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function __construct(
EsiAuthentication $authentication = null)
{
if (! is_null($authentication))
$this->authentication = $authentication;
// Setup the logger
$this->logger = $this->getLogger();
return $this;
}
/**
* @return \Seat\Eseye\Log\LogInterface
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function getLogger(): LogInterface
{
return $this->getConfiguration()->getLogger();
}
/**
* @return \Seat\Eseye\Configuration
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function getConfiguration(): Configuration
{
return Configuration::getInstance();
}
/**
* @return \Seat\Eseye\Containers\EsiAuthentication
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
*/
public function getAuthentication(): EsiAuthentication
{
if (is_null($this->authentication))
throw new InvalidAuthenticationException('Authentication data not set.');
return $this->authentication;
}
/**
* @param \Seat\Eseye\Containers\EsiAuthentication $authentication
*
* @return \Seat\Eseye\Eseye
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function setAuthentication(EsiAuthentication $authentication): self
{
if (! $authentication->valid())
throw new InvalidContainerDataException('Authentication data invalid/empty');
$this->authentication = $authentication;
return $this;
}
/**
* @return bool
*/
public function isAuthenticated(): bool
{
return ! is_null($this->authentication);
}
/**
* @param string $refreshToken
*
* @return \Seat\Eseye\Eseye
*/
public function setRefreshToken(string $refreshToken): self
{
$this->authentication = $this->authentication->setRefreshToken($refreshToken);
return $this;
}
/**
* @param \Seat\Eseye\Fetchers\FetcherInterface $fetcher
*/
public function setFetcher(FetcherInterface $fetcher)
{
$this->fetcher = $fetcher;
}
/**
* @param array $body
*
* @return \Seat\Eseye\Eseye
*/
public function setBody(array $body): self
{
$this->request_body = $body;
return $this;
}
/**
* @param string $method
* @param string $uri
* @param array $uri_data
*
* @return \Seat\Eseye\Containers\EsiResponse
* @throws \Seat\Eseye\Exceptions\EsiScopeAccessDeniedException
* @throws \Seat\Eseye\Exceptions\RequestFailedException
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
* @throws \Seat\Eseye\Exceptions\UriDataMissingException
*/
public function invoke(string $method, string $uri, array $uri_data = []): EsiResponse
{
// Check the Access Requirement
if (! $this->getAccessChecker()->can(
$method, $uri, $this->getFetcher()->getAuthenticationScopes())
) {
// Build the uri so that there is context around what is denied.
$uri = $this->buildDataUri($uri, $uri_data);
// Log the deny.
$this->logger->warning('Access denied to ' . $uri . ' due to ' .
'missing scopes.');
throw new EsiScopeAccessDeniedException('Access denied to ' . $uri);
}
// Build the URI from the parts we have.
$uri = $this->buildDataUri($uri, $uri_data);
// Check if there is a cached response we can return
if (in_array(strtolower($method), $this->cachable_verb) &&
$cached = $this->getCache()->get($uri->getPath(), $uri->getQuery())
) {
// In case the cached entry is still valid, mark content as being loaded from cache.
if (! $cached->expired())
$cached->setIsCachedLoad();
// Handling ETag marked response specifically (ignoring the expired time)
// Sending a request with the stored ETag in header - if we have a 304 response, data has not been altered.
if ($cached->hasHeader('ETag') && $cached->expired()) {
$result = $this->rawFetch($method, $uri, $this->getBody(), ['If-None-Match' => $cached->getHeader('ETag')]);
if ($result->getErrorCode() == 304) {
// update expires header with newly provided value
$cached->setExpires($result->expires());
// store updated response in cache to renew internal cache duration
$this->getCache()->set($uri->getPath(), $uri->getQuery(), $cached);
$cached->setIsCachedLoad();
}
}
// In case the result is effectively retrieved from cache,
// return the cached element.
if ($cached->isCachedLoad()) {
// Perform some debug logging
$logging_msg = 'Loaded cached response for ' . $method . ' -> ' . $uri;
if ($cached->hasHeader('ETag'))
$logging_msg = sprintf('%s [%s]', $logging_msg, $cached->getHeader('ETag'));
$this->getLogger()->debug($logging_msg);
return $cached;
}
}
// Call ESI itself and get the EsiResponse in case it has not already been handled with cache control
if (! isset($result))
$result = $this->rawFetch($method, $uri, $this->getBody());
// Cache the response if it was a get and is not already expired
if (in_array(strtolower($method), $this->cachable_verb) && ! $result->expired())
$this->getCache()->set($uri->getPath(), $uri->getQuery(), $result);
// In preparation for the next request, perform some
// self cleanups of this objects request data such as
// query string parameters and post bodies.
$this->cleanupRequestData();
return $result;
}
/**
* @return \Seat\Eseye\Access\CheckAccess
*/
public function getAccessChecker()
{
if (! $this->access_checker)
$this->access_checker = new CheckAccess;
return $this->access_checker;
}
/**
* @param \Seat\Eseye\Access\AccessInterface $checker
*
* @return \Seat\Eseye\Eseye
*/
public function setAccessChecker(AccessInterface $checker): self
{
$this->access_checker = $checker;
return $this;
}
/**
* @return \Seat\Eseye\Fetchers\FetcherInterface
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
private function getFetcher(): FetcherInterface
{
if (! $this->fetcher) {
$fetcher_class = $this->getConfiguration()->fetcher;
$this->fetcher = new $fetcher_class(...[$this->authentication]);
}
return $this->fetcher;
}
/**
* @param string $uri
* @param array $data
*
* @return \Psr\Http\Message\UriInterface
* @throws \Seat\Eseye\Exceptions\UriDataMissingException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function buildDataUri(string $uri, array $data): Uri
{
// Create a query string for the URI. We automatically
// include the datasource value from the configuration.
$query_params = array_merge([
'datasource' => $this->getConfiguration()->datasource,
], $this->getQueryString());
return Uri::fromParts([
'scheme' => $this->getConfiguration()->esi_scheme,
'host' => $this->getConfiguration()->esi_host,
'port' => $this->getConfiguration()->esi_port,
'path' => rtrim($this->getVersion(), '/') .
$this->mapDataToUri($uri, $data),
'query' => http_build_query($query_params),
]);
}
/**
* @return array
*/
public function getQueryString(): array
{
return $this->query_string;
}
/**
* @param array $query
*
* @return \Seat\Eseye\Eseye
*/
public function setQueryString(array $query): self
{
foreach ($query as $key => $value) {
if (is_array($value)) {
$query[$key] = implode(',', $value);
}
}
$this->query_string = array_merge($this->query_string, $query);
return $this;
}
/**
* Get the versioned baseURI to use.
*
* @return string
*/
public function getVersion(): string
{
return $this->version;
}
/**
* Set the version of the API endpoints base URI.
*
* @param string $version
*
* @return \Seat\Eseye\Eseye
*/
public function setVersion(string $version)
{
if (substr($version, 0, 1) !== '/')
$version = '/' . $version;
$this->version = $version;
return $this;
}
/**
* @param string $uri
* @param array $data
*
* @return string
* @throws \Seat\Eseye\Exceptions\UriDataMissingException
*/
private function mapDataToUri(string $uri, array $data): string
{
// Extract fields in curly braces. If there are fields,
// replace the data with those in the URI
if (preg_match_all('/{+(.*?)}/', $uri, $matches)) {
if (empty($data))
throw new UriDataMissingException(
'The data array for the uri ' . $uri . ' is empty. Please provide data to use.');
foreach ($matches[1] as $match) {
if (! array_key_exists($match, $data))
throw new UriDataMissingException(
'Data for ' . $match . ' is missing. Please provide this by setting a value ' .
'for ' . $match . '.');
$uri = str_replace('{' . $match . '}', $data[$match], $uri);
}
}
return $uri;
}
/**
* @return \Seat\Eseye\Cache\CacheInterface
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
private function getCache(): CacheInterface
{
return $this->getConfiguration()->getCache();
}
/**
* @param string $method
* @param string $uri
* @param array $body
* @param array $headers
*
* @return \Seat\Eseye\Containers\EsiResponse
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
* @throws \Seat\Eseye\Exceptions\RequestFailedException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function rawFetch(string $method, string $uri, array $body, array $headers = [])
{
return $this->getFetcher()->call($method, $uri, $body, $headers);
}
/**
* @return array
*/
public function getBody(): array
{
return $this->request_body;
}
/**
* @return \Seat\Eseye\Eseye
*/
public function cleanupRequestData(): self
{
$this->unsetBody();
$this->unsetQueryString();
return $this;
}
/**
* @return \Seat\Eseye\Eseye
*/
public function unsetBody(): self
{
$this->request_body = [];
return $this;
}
/**
* @return \Seat\Eseye\Eseye
*/
public function unsetQueryString(): self
{
$this->query_string = [];
return $this;
}
/**
* A helper method to specify the page to retrieve.
*
* @param int $page
*
* @return \Seat\Eseye\Eseye
*/
public function page(int $page): self
{
$this->setQueryString(['page' => $page]);
return $this;
}
}

View File

@@ -0,0 +1,34 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Exceptions;
use Exception;
/**
* Class CachePathException.
* @package Seat\Eseye\Exceptions
*/
class CachePathException extends Exception
{
}

View File

@@ -0,0 +1,34 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Exceptions;
use Exception;
/**
* Class EsiScopeAccessDeniedException.
* @package Seat\Eseye\Exceptions
*/
class EsiScopeAccessDeniedException extends Exception
{
}

View File

@@ -0,0 +1,34 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Exceptions;
use Exception;
/**
* Class InvalidAuthenticationException.
* @package Seat\Eseye\Exceptions
*/
class InvalidAuthenticationException extends Exception
{
}

View File

@@ -0,0 +1,34 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Exceptions;
use Exception;
/**
* Class InvalidConfigurationException.
* @package Seat\Eseye\Exceptions
*/
class InvalidConfigurationException extends Exception
{
}

View File

@@ -0,0 +1,34 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Exceptions;
use Exception;
/**
* Class InvalidContainerDataException.
* @package Seat\Eseye\Exceptions
*/
class InvalidContainerDataException extends Exception
{
}

View File

@@ -0,0 +1,34 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Exceptions;
use Exception;
/**
* Class InvalidEsiSpecException.
* @package Seat\Eseye\Exceptions
*/
class InvalidEsiSpecException extends Exception
{
}

View File

@@ -0,0 +1,91 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Exceptions;
use Exception;
use Seat\Eseye\Containers\EsiResponse;
/**
* Class RequestFailedException.
* @package Seat\Eseye\Exceptions
*/
class RequestFailedException extends Exception
{
/**
* @var \Seat\Eseye\Containers\EsiResponse
*/
private $esi_response;
/**
* @var \Exception
*/
private $original_exception;
/**
* RequestFailedException constructor.
*
* @param \Exception $exception
* @param \Seat\Eseye\Containers\EsiResponse $esi_response
*/
public function __construct(Exception $exception, EsiResponse $esi_response)
{
$this->esi_response = $esi_response;
$this->original_exception = $exception;
// Finish constructing the exception
parent::__construct(
$this->getError(),
$this->getEsiResponse()->getErrorCode(),
$exception->getPrevious()
);
}
/**
* @return null|string
*/
public function getError()
{
return $this->getEsiResponse()->error();
}
/**
* @return \Seat\Eseye\Containers\EsiResponse
*/
public function getEsiResponse(): EsiResponse
{
return $this->esi_response;
}
/**
* @return \Exception
*/
public function getOriginalException(): Exception
{
return $this->original_exception;
}
}

View File

@@ -0,0 +1,34 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Exceptions;
use Exception;
/**
* Class UriDataMissingException.
* @package Seat\Eseye\Exceptions
*/
class UriDataMissingException extends Exception
{
}

View File

@@ -0,0 +1,50 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Fetchers;
use Seat\Eseye\Containers\EsiResponse;
/**
* Interface FetcherInterface.
* @package Seat\Eseye\Fetchers
*/
interface FetcherInterface
{
/**
* @param string $method
* @param string $uri
* @param array $body
* @param array $headers
*
* @return \Seat\Eseye\Containers\EsiResponse
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
* @throws \Seat\Eseye\Exceptions\RequestFailedException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function call(string $method, string $uri, array $body, array $headers = []): EsiResponse;
/**
* @return array
*/
public function getAuthenticationScopes(): array;
}

View File

@@ -0,0 +1,475 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Fetchers;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ServerException;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Psr7\Uri;
use Jose\Component\Core\JWKSet;
use Jose\Easy\Load;
use Seat\Eseye\Checker\Claim\AzpChecker;
use Seat\Eseye\Checker\Claim\NameChecker;
use Seat\Eseye\Checker\Claim\OwnerChecker;
use Seat\Eseye\Checker\Claim\SubEveCharacterChecker;
use Seat\Eseye\Checker\Header\TypeChecker;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiAuthentication;
use Seat\Eseye\Containers\EsiResponse;
use Seat\Eseye\Eseye;
use Seat\Eseye\Exceptions\InvalidAuthenticationException;
use Seat\Eseye\Exceptions\RequestFailedException;
/**
* Class GuzzleFetcher.
* @package Seat\Eseye\Fetchers
*/
class GuzzleFetcher implements FetcherInterface
{
/**
* @var string
*/
protected $authentication;
/**
* @var \GuzzleHttp\Client
*/
protected $client;
/**
* @var \Seat\Eseye\Log\LogInterface
*/
protected $logger;
/**
* @var string
*/
protected $sso_base;
/**
* EseyeFetcher constructor.
*
* @param \Seat\Eseye\Containers\EsiAuthentication $authentication
*
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function __construct(EsiAuthentication $authentication = null)
{
$this->authentication = $authentication;
// Setup the logger
$this->logger = Configuration::getInstance()->getLogger();
$this->sso_base = sprintf('%s://%s:%d/v2/oauth',
Configuration::getInstance()->sso_scheme,
Configuration::getInstance()->sso_host,
Configuration::getInstance()->sso_port);
}
/**
* @param string $method
* @param string $uri
* @param array $body
* @param array $headers
*
* @return \Seat\Eseye\Containers\EsiResponse
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
* @throws \Seat\Eseye\Exceptions\RequestFailedException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function call(
string $method, string $uri, array $body, array $headers = []): EsiResponse
{
// If we have authentication data, add the
// Authorization header.
if ($this->getAuthentication())
$headers = array_merge($headers, [
'Authorization' => 'Bearer ' . $this->getToken(),
]);
return $this->httpRequest($method, $uri, $headers, $body);
}
/**
* @return \Seat\Eseye\Containers\EsiAuthentication|null
*/
public function getAuthentication()
{
return $this->authentication;
}
/**
* @param \Seat\Eseye\Containers\EsiAuthentication $authentication
*
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
*/
public function setAuthentication(EsiAuthentication $authentication)
{
if (! $authentication->valid())
throw new InvalidAuthenticationException('Authentication data invalid/empty');
$this->authentication = $authentication;
}
/**
* @return string
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
* @throws \Seat\Eseye\Exceptions\RequestFailedException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
private function getToken(): string
{
// Ensure that we have authentication data before we try
// and get a token.
if (! $this->getAuthentication())
throw new InvalidAuthenticationException(
'Trying to get a token without authentication data.');
// Check the expiry date.
$expires = carbon($this->getAuthentication()->token_expires);
// If the token expires in the next minute, refresh it.
if ($expires->lte(carbon('now')->addMinute()))
$this->refreshToken();
return $this->getAuthentication()->access_token;
}
/**
* Refresh the Access token that we have in the EsiAccess container.
*
* @throws \Seat\Eseye\Exceptions\RequestFailedException
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
private function refreshToken()
{
// Make the post request for a new access_token
try {
$response = $this->getClient()->post($this->sso_base . '/token',
[
'form_params' => [
'grant_type' => 'refresh_token',
'refresh_token' => $this->authentication->refresh_token,
],
'headers' => [
'Authorization' => 'Basic ' . base64_encode(
$this->authentication->client_id . ':' . $this->authentication->secret),
'User-Agent' => 'Eseye/' . Eseye::VERSION . '/' .
Configuration::getInstance()->http_user_agent,
],
]
);
} catch (ClientException | ServerException $e) {
// Log the event as failed
$this->logger->error('[http ' . $e->getResponse()->getStatusCode() . ', ' .
strtolower($e->getResponse()->getReasonPhrase()) . '] ' .
'get -> ' . $this->sso_base . '/token'
);
// Grab the body from the StreamInterface intance.
$responseBody = $e->getResponse()->getBody()->getContents();
// For debugging purposes, log the response body
$this->logger->debug('Request for get -> ' . $this->sso_base . '/token failed. Response body was: ' .
$responseBody);
// Raise the exception that should be handled by the caller
throw new RequestFailedException($e, $this->makeEsiResponse(
$responseBody,
$e->getResponse()->getHeaders(),
'now',
$e->getResponse()->getStatusCode())
);
}
$response = json_decode($response->getBody()->getContents());
// Get the current EsiAuth container
$authentication = $this->getAuthentication();
$jws_token = $this->verifyToken($response->access_token);
$this->logger->debug(json_encode($jws_token));
// Set the new authentication values from the request
$authentication->access_token = $response->access_token;
$authentication->refresh_token = $response->refresh_token;
$authentication->token_expires = $jws_token['exp'];
// ... and update the container
$this->setAuthentication($authentication);
}
/**
* @param string $method
* @param string $uri
* @param array $headers
* @param array $body
*
* @return mixed|\Seat\Eseye\Containers\EsiResponse
* @throws \Seat\Eseye\Exceptions\RequestFailedException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function httpRequest(
string $method, string $uri, array $headers = [], array $body = []): EsiResponse
{
// Include some basic headers to those already passed in. Everything
// is considered to be json.
$headers = array_merge($headers, [
'Accept' => 'application/json',
'Content-Type' => 'application/json',
]);
// Add some debug logging and start measuring how long the request took.
$this->logger->debug('Making ' . $method . ' request to ' . $uri);
$start = microtime(true);
// Json encode the body if it has data, else just null it
if (count($body) > 0)
$body = json_encode($body);
else
$body = null;
try {
// Make the _actual_ request to ESI
$response = $this->getClient()->send(
new Request($method, $uri, $headers, $body));
} catch (ClientException | ServerException $e) {
// Log the event as failed
$this->logger->error('[http ' . $e->getResponse()->getStatusCode() . ', ' .
strtolower($e->getResponse()->getReasonPhrase()) . '] ' .
$method . ' -> ' . $this->stripRefreshTokenValue($uri) . ' [t/e: ' .
number_format(microtime(true) - $start, 2) . 's/' .
implode(' ', $e->getResponse()->getHeader('X-Esi-Error-Limit-Remain')) . ']'
);
// Grab the body from the StreamInterface intance.
$responseBody = $e->getResponse()->getBody()->getContents();
// For debugging purposes, log the response body
$this->logger->debug('Request for ' . $method . ' -> ' . $uri . ' failed. Response body was: ' .
$responseBody);
// Raise the exception that should be handled by the caller
throw new RequestFailedException($e, $this->makeEsiResponse(
$responseBody,
$e->getResponse()->getHeaders(),
'now',
$e->getResponse()->getStatusCode())
);
}
// Log the successful request.
$this->logger->log('[http ' . $response->getStatusCode() . ', ' .
strtolower($response->getReasonPhrase()) . '] ' .
$method . ' -> ' . $this->stripRefreshTokenValue($uri) . ' [t/e: ' .
number_format(microtime(true) - $start, 2) . 's/' .
implode(' ', $response->getHeader('X-Esi-Error-Limit-Remain')) . ']'
);
// Return a container response that can be parsed.
return $this->makeEsiResponse(
$response->getBody()->getContents(),
$response->getHeaders(),
$response->hasHeader('Expires') ? $response->getHeader('Expires')[0] : 'now',
$response->getStatusCode()
);
}
/**
* @return \GuzzleHttp\Client
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function getClient(): Client
{
if (! $this->client)
$this->client = new Client([
'timeout' => 30,
'headers' => [
'User-Agent' => 'Eseye/' . Eseye::VERSION . '/' .
Configuration::getInstance()->http_user_agent,
],
]);
return $this->client;
}
/**
* @param \GuzzleHttp\Client $client
*/
public function setClient(Client $client)
{
$this->client = $client;
}
/**
* @param string $uri
*
* @return string
*/
public function stripRefreshTokenValue(string $uri): string
{
// If we have 'refresh_token' in the URI, strip it.
if (strpos($uri, 'refresh_token'))
return Uri::withoutQueryValue((new Uri($uri)), 'refresh_token')
->__toString();
return $uri;
}
/**
* @param string $body
* @param array $headers
* @param string $expires
* @param int $status_code
*
* @return \Seat\Eseye\Containers\EsiResponse
*/
public function makeEsiResponse(
string $body, array $headers, string $expires, int $status_code): EsiResponse
{
return new EsiResponse($body, $headers, $expires, $status_code);
}
/**
* @return array
*
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
* @throws \Seat\Eseye\Exceptions\RequestFailedException
*/
public function getAuthenticationScopes(): array
{
// If we don't have any authentication data, then
// only public calls can be made.
if (is_null($this->getAuthentication()))
return ['public'];
// If there are no scopes that we know of, update them.
// There will always be at least 1 as we add the internal
// 'public' scope.
if (count($this->getAuthentication()->scopes) <= 0)
$this->setAuthenticationScopes();
return $this->getAuthentication()->scopes;
}
/**
* Query the eveseat/resources repository for SDE
* related information.
*
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
* @throws \Seat\Eseye\Exceptions\RequestFailedException
*/
public function setAuthenticationScopes()
{
$jws_token = $this->verifyToken($this->authentication->access_token);
$this->authentication->scopes = $jws_token['scp'];
}
/**
* Verify that an access_token is still valid.
*
* @param string $access_token
* @return array
* @throws \Seat\Eseye\Exceptions\InvalidAuthenticationException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
* @throws \Seat\Eseye\Exceptions\RequestFailedException
* @throws \Exception
*/
private function verifyToken(string $access_token)
{
$sets = $this->getJwkSets();
$jwk_sets = JWKSet::createFromKeyData($sets);
$jws = Load::jws($access_token)
->algs(['RS256', 'ES256', 'HS256'])
->exp()
->iss(Configuration::getInstance()->sso_host)
->header('typ', new TypeChecker(['JWT'], true))
->claim('sub', new SubEveCharacterChecker())
->claim('azp', new AzpChecker($this->authentication->client_id))
->claim('name', new NameChecker())
->claim('owner', new OwnerChecker())
->keyset($jwk_sets)
->run();
return $jws->claims->all();
}
/**
* @return array
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
private function getJwkSets(): array
{
$jwk_uri = $this->getJwkUri();
$response = $this->getClient()->get($jwk_uri);
return json_decode($response->getBody(), true);
}
/**
* @return string
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
private function getJwkUri(): string
{
$oauth_discovery = sprintf('%s://%s:%d/.well-known/oauth-authorization-server',
Configuration::getInstance()->sso_scheme,
Configuration::getInstance()->sso_host,
Configuration::getInstance()->sso_port);
$response = $this->getClient()->get($oauth_discovery);
$metadata = json_decode($response->getBody());
return $metadata->jwks_uri;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
if (! function_exists('carbon')) {
/**
* A helper to get a fresh instance of Carbon.
*
* @param null $data
*
* @return \Carbon\Carbon
*/
function carbon($data = null)
{
if (! is_null($data))
return new \Carbon\Carbon($data);
return new \Carbon\Carbon;
}
}

View File

@@ -0,0 +1,106 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Log;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Seat\Eseye\Configuration;
/**
* Class FileLogger.
* @package Seat\Eseye\Log
*/
class FileLogger implements LogInterface
{
/**
* @var \Monolog\Logger
*/
protected $logger;
/**
* FileLogger constructor.
* @throws \Exception
*/
public function __construct()
{
// Get the configuration values
$configuration = Configuration::getInstance();
$formatter = new LineFormatter("[%datetime%] %channel%.%level_name%: %message%\n");
$stream = new StreamHandler(
rtrim($configuration->logfile_location, '/') . '/eseye.log',
$configuration->logger_level
);
$stream->setFormatter($formatter);
$this->logger = new Logger('eseye');
$this->logger->pushHandler($stream);
}
/**
* @param string $message
*
* @return mixed|void
*/
public function log(string $message)
{
$this->logger->info($message);
}
/**
* @param string $message
*
* @return mixed|void
*/
public function debug(string $message)
{
$this->logger->debug($message);
}
/**
* @param string $message
*
* @return mixed|void
*/
public function warning(string $message)
{
$this->logger->warning($message);
}
/**
* @param string $message
*
* @return mixed|void
*/
public function error(string $message)
{
$this->logger->error($message);
}
}

View File

@@ -0,0 +1,58 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Log;
/**
* Interface LogInterface.
* @package Seat\Eseye\Log
*/
interface LogInterface
{
/**
* @param string $message
*
* @return mixed
*/
public function log(string $message);
/**
* @param string $message
*
* @return mixed
*/
public function debug(string $message);
/**
* @param string $message
*
* @return mixed
*/
public function warning(string $message);
/**
* @param string $message
*
* @return mixed
*/
public function error(string $message);
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Log;
/**
* Class NullLogger.
* @package Seat\Eseye\Log
*/
class NullLogger implements LogInterface
{
/**
* @param string $message
*
* @return mixed
*/
public function log(string $message)
{
}
/**
* @param string $message
*
* @return mixed
*/
public function debug(string $message)
{
}
/**
* @param string $message
*
* @return mixed
*/
public function warning(string $message)
{
}
/**
* @param string $message
*
* @return mixed
*/
public function error(string $message)
{
}
}

View File

@@ -0,0 +1,106 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Log;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\RotatingFileHandler;
use Monolog\Logger;
use Seat\Eseye\Configuration;
/**
* Class RotatingFileLogger.
* @package Seat\Eseye\Log
*/
class RotatingFileLogger implements LogInterface
{
/**
* @var \Monolog\Logger
*/
protected $logger;
/**
* FileLogger constructor.
* @throws \Exception
*/
public function __construct()
{
// Get the configuration values
$configuration = Configuration::getInstance();
$formatter = new LineFormatter("[%datetime%] %channel%.%level_name%: %message%\n");
$stream = new RotatingFileHandler(
rtrim($configuration->logfile_location, '/') . '/eseye.log',
$configuration->log_max_files,
$configuration->logger_level
);
$stream->setFormatter($formatter);
$this->logger = new Logger('eseye');
$this->logger->pushHandler($stream);
}
/**
* @param string $message
*
* @return mixed|void
*/
public function log(string $message)
{
$this->logger->info($message);
}
/**
* @param string $message
*
* @return mixed|void
*/
public function debug(string $message)
{
$this->logger->debug($message);
}
/**
* @param string $message
*
* @return mixed|void
*/
public function warning(string $message)
{
$this->logger->warning($message);
}
/**
* @param string $message
*
* @return mixed|void
*/
public function error(string $message)
{
$this->logger->error($message);
}
}

View File

@@ -0,0 +1,61 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Traits;
use Seat\Eseye\Exceptions\InvalidContainerDataException;
/**
* Class ConstructsContainers.
* @package Seat\Eseye\Traits
*/
trait ConstructsContainers
{
/**
* ConstructsContainers constructor.
*
* This constructor is used in Containers to allow setting
* data when a new instance is created. It will validate
* the incoming array to ensure that only the keys in
* the data property of the container is set.
*
* @param array|null $data
*
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function __construct(array $data = null)
{
if (! is_null($data)) {
foreach ($data as $key => $value) {
if (! array_key_exists($key, $this->data))
throw new InvalidContainerDataException(
'Key ' . $key . ' is not valid for this container'
);
$this->$key = $value;
}
}
}
}

View File

@@ -0,0 +1,42 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Seat\Eseye\Traits;
/**
* Class ValidatesContainers.
* @package Seat\Eseye\Traits
*/
trait ValidatesContainers
{
/**
* Determine is a Container should be considered valid by
* check if there are any null values in the data property.
*
* @return bool
*/
public function valid(): bool
{
return ! in_array(null, $this->data, true);
}
}

View File

@@ -0,0 +1,86 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Access\CheckAccess;
use Seat\Eseye\Configuration;
use Seat\Eseye\Log\NullLogger;
class CheckAccessTest extends PHPUnit_Framework_TestCase
{
protected $check_access;
public function setUp()
{
$this->check_access = new CheckAccess;
}
public function testCheckAccessObjectInstantiation()
{
$this->assertInstanceOf(CheckAccess::class, $this->check_access);
}
public function testCheckAccessCanShouldGrantAccess()
{
$scopes = [
'esi-assets.read_assets.v1',
];
$result = $this->check_access->can('get', '/characters/{character_id}/assets/', $scopes);
$this->assertTrue($result);
}
public function testCheckAccessCanShouldDenyAccess()
{
$scopes = [
'esi-assets.read_assets.v1',
];
$result = $this->check_access->can('get', '/characters/{character_id}/bookmarks/', $scopes);
$this->assertFalse($result);
}
public function testCheckAccessCanShouldAllowPublicOnlyCall()
{
$result = $this->check_access->can('get', '/alliances/', []);
$this->assertTrue($result);
}
public function testCheckAccessShouldAllowAccessToUnknownUri()
{
// Disable logging.
Configuration::getInstance()->logger = NullLogger::class;
$result = $this->check_access->can('get', '/invalid/uri', []);
$this->assertTrue($result);
}
}

View File

@@ -0,0 +1,116 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use org\bovigo\vfs\vfsStream;
use Seat\Eseye\Cache\FileCache;
use Seat\Eseye\Configuration;
use Seat\Eseye\Exceptions\CachePathException;
class FileCacheTest extends PHPUnit_Framework_TestCase
{
protected $root;
protected $file_cache;
public function setUp()
{
// Set the file cache path in the config singleton
$this->root = vfsStream::setup('cache');
Configuration::getInstance()->file_cache_location = vfsStream::url('cache');
$this->file_cache = new FileCache;
}
public function testFileCacheCanInstantiate()
{
$this->assertInstanceOf(FileCache::class, new FileCache);
}
public function testFileCacheCheckCacheDirectory()
{
$this->assertTrue($this->file_cache->checkCacheDirectory());
}
public function testFileCacheBuildsRelativePathWithoutQueryString()
{
$path = $this->file_cache->buildRelativePath('/test');
$this->assertEquals('vfs://cache/test//', $path);
}
public function testFileCacheBuildsRelativePathWithQueryString()
{
$path = $this->file_cache->buildRelativePath('/test', 'foo=bar');
$this->assertEquals('vfs://cache/test/2fb8f40115dd1e695cbe23d4f97ce5b1fb697eee/', $path);
}
public function testFileCacheFailsCreatingDirectoryOnInvalidPath()
{
$this->expectException(CachePathException::class);
if (substr(PHP_OS, 0, 3) == 'WIN')
$invalid_path = '/completely:invalid?path';
else
$invalid_path = '/completely/invalid/path';
Configuration::getInstance()
->file_cache_location = $invalid_path;
new FileCache();
}
/**
* @param $input
* @param $output
*
* @dataProvider providerTestFileCacheSafePathValues
*/
public function testFileCacheSafePathValues($input, $output)
{
$result = $this->file_cache->safePath($input);
$this->assertEquals($output, $result);
}
/**
* @return array
*/
public function providerTestFileCacheSafePathValues()
{
return [
['A/B/C', 'A/B/C'],
['\'A/B/C', 'A/B/C'],
['`A/B/C`', 'A/B/C'],
['|&*A%/$B!/C', 'A/B/C'],
];
}
}

View File

@@ -0,0 +1,43 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Cache\HashesStrings;
class HashesStringsTest extends PHPUnit_Framework_TestCase
{
use HashesStrings;
public function testHashesStringsToExpectedValue()
{
$this->assertEquals('a94a8fe5ccb19ba61c4c0873d391e987982fbbd3',
$this->hashString('test'));
}
public function testHashesStringsToUnexpectedValue()
{
$this->assertNotEquals('nope', $this->hashString('test'));
}
}

View File

@@ -0,0 +1,75 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Cache\MemcachedCache;
use Seat\Eseye\Containers\EsiResponse;
class MemcachedCacheTest extends PHPUnit_Framework_TestCase
{
/*
* @var MemcachedCache
*/
protected $memcached_cache;
protected $esi_response_object;
public function setUp()
{
$is_memcached = class_exists('Memcached', false);
if ($is_memcached)
$instance = $this->createMock(\Memcached::class);
else
$instance = $this->createMock(\Memcache::class);
// Set the cache
$this->memcached_cache = new MemcachedCache($instance);
$this->esi_response_object = new EsiResponse('', [], 'now', 200);
}
public function testMemcachedCacheInstantiates()
{
$this->assertInstanceOf(MemcachedCache::class, $this->memcached_cache);
}
public function testMemcachedCacheBuildsCacheKey()
{
$key = $this->memcached_cache->buildCacheKey('/test', 'foo=bar');
$this->assertEquals('eseye:b0f071c288f528954cddef0e1aa24df41de874aa', $key);
}
public function testMemcachedCacheSetsKey()
{
$this->memcached_cache->set('/foo', 'foo=bar', $this->esi_response_object);
}
public function testMemcachedCacheForgetsKey()
{
$this->memcached_cache->forget('/foo', 'foo=bar');
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Cache\NullCache;
use Seat\Eseye\Containers\EsiResponse;
class NullCacheTest extends PHPUnit_Framework_TestCase
{
protected $null_cache;
public function setUp()
{
$this->null_cache = new NullCache;
}
public function testNullCacheInstantiates()
{
$this->assertInstanceOf(NullCache::class, $this->null_cache);
}
public function testNullCacheSetsValue()
{
$esi_response = $this->createMock(EsiResponse::class);
$return = $this->null_cache->set('/test', 'foo=bar', $esi_response);
$this->assertNull($return);
}
public function testNullCacheGetsValue()
{
$this->assertFalse($this->null_cache->get('/test', 'foo=bar'));
}
public function testNullCacheForgetsValues()
{
$this->assertNull($this->null_cache->forget('/test', 'foo=bar'));
}
public function testNullCacheHasValue()
{
$this->assertFalse($this->null_cache->has('/test', 'foo=bar'));
}
}

View File

@@ -0,0 +1,78 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Predis\Client;
use Seat\Eseye\Cache\RedisCache;
use Seat\Eseye\Containers\EsiResponse;
class RedisCacheTest extends PHPUnit_Framework_TestCase
{
/**
* @var RedisCache
*/
protected $redis_cache;
protected $esi_response_object;
public function setUp()
{
$redis = $this->createMock(Client::class);
// Set the cache
$this->redis_cache = new RedisCache($redis);
$this->esi_response_object = new EsiResponse('', [], 'now', 200);
}
public function testRedisCacheInstantiates()
{
$this->assertInstanceOf(RedisCache::class, $this->redis_cache);
}
public function testRedisCacheInstantiatesWithoutArgument()
{
$this->assertInstanceOf(RedisCache::class, new RedisCache);
}
public function testRedisCacheBuildsCacheKey()
{
$key = $this->redis_cache->buildCacheKey('/test', 'foo=bar');
$this->assertEquals('b0f071c288f528954cddef0e1aa24df41de874aa', $key);
}
public function testRedisCacheSetsKey()
{
$this->redis_cache->set('/foo', 'foo=bar', $this->esi_response_object);
}
public function testRedisCacheForgetsKey()
{
$this->redis_cache->forget('/foo', 'foo=bar');
}
}

View File

@@ -0,0 +1,102 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Cache\CacheInterface;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiConfiguration;
use Seat\Eseye\Exceptions\InvalidContainerDataException;
use Seat\Eseye\Log\LogInterface;
class ConfigurationTest extends PHPUnit_Framework_TestCase
{
public function testConfigurationInstantiation()
{
$this->assertInstanceOf(Configuration::class, Configuration::getInstance());
}
public function testConfigurationSingleton()
{
$instance1 = Configuration::getInstance();
$instance2 = Configuration::getInstance();
$instance1->setConfiguration(new EsiConfiguration([
'datasource' => 'test',
]));
// Got a feeling this assert is wrong
$this->assertNotEquals('<string:test>', $instance2->getConfiguration()->datasource);
}
public function testConfigurationGetConfigurationValuesContainer()
{
$this->assertInstanceOf(EsiConfiguration::class, Configuration::getInstance()->getConfiguration());
}
public function testConfigurationSetsNewConfigurationContainerWithValidData()
{
$configuration = new EsiConfiguration(['http_user_agent' => 'Eseye Library']);
$this->assertInstanceOf(EsiConfiguration::class, $configuration);
}
public function testConfigurationSetsNewConfigurationsContainerWithInvalidData()
{
$this->expectException(InvalidContainerDataException::class);
new EsiConfiguration(['invalid' => 'invalid']);
}
public function testConfigurationSetsNewConfigurationContainerWithNullData()
{
$this->expectException(InvalidContainerDataException::class);
new EsiConfiguration(['value' => null]);
}
public function testConfigurationGetsLogger()
{
$logger = Configuration::getInstance()->getLogger();
$this->assertInstanceOf(LogInterface::class, $logger);
}
public function testConfigurationGetsCache()
{
$cache = Configuration::getInstance()->getCache();
$this->assertInstanceOf(CacheInterface::class, $cache);
}
public function testConfigurationSetsNewValue()
{
$configuration = Configuration::getInstance();
$configuration->test = 'test';
$this->assertEquals('test', $configuration->test);
$this->assertEquals('test', $configuration->getConfiguration()->test);
}
}

View File

@@ -0,0 +1,139 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Containers\EsiAuthentication;
use Seat\Eseye\Exceptions\InvalidContainerDataException;
class EsiAuthenticationTest extends PHPUnit_Framework_TestCase
{
protected $esi_authentication;
public function setUp()
{
$this->esi_authentication = new EsiAuthentication;
}
public function testEsiAuthenticationInstantiation()
{
$this->assertInstanceOf(EsiAuthentication::class, $this->esi_authentication);
}
public function testFreshEsiAuthenticationInstanceIsNotValid()
{
$this->assertFalse($this->esi_authentication->valid());
}
public function testEsiAuthenticationCanAccessAsArrayKey()
{
$this->assertArrayHasKey('client_id', $this->esi_authentication);
}
public function testEsiAuthenticationCanAccessAsObjectProperty()
{
$client_id = $this->esi_authentication->client_id;
$this->assertNull($client_id);
}
public function testCanSetAndAccessConfigurationValueAsArrayKey()
{
$authentication = new EsiAuthentication;
$authentication['test'] = 'test';
$this->assertEquals('test', $authentication['test']);
}
public function testCanSetAndAccessConfigurationValueAsObjectProperty()
{
$authentication = new EsiAuthentication;
$authentication->test = 'test';
$this->assertEquals('test', $authentication->test);
}
public function testEsiAuthenticationContainerConstructWithValuePasses()
{
$authentication = new EsiAuthentication([
'client_id' => '123',
]);
$this->assertInstanceOf(EsiAuthentication::class, $authentication);
}
public function testEsiAuthenticationContainerConstructWithUnknownKeyFails()
{
$this->expectException(InvalidContainerDataException::class);
new EsiAuthentication([
'foo' => 'bar',
]);
}
/**
* @param $key The key to check for existence
*
* @dataProvider providerTestRequiredKeysExists
*/
public function testRequiredKeysExists($key)
{
$authentication = new EsiAuthentication;
$this->assertArrayHasKey($key, $authentication);
}
/**
* Keys that _should_ exists in a new Configuration instance
*
* @return array
*/
public function providerTestRequiredKeysExists()
{
return [
['client_id'],
['secret'],
['access_token'],
['refresh_token'],
['token_expires'],
['scopes'],
];
}
public function testEsiAuthenticationContainerSetRefreshToken()
{
$authentication = new EsiAuthentication;
$authentication->setRefreshToken('REFRESH_TOKEN');
$this->assertEquals('REFRESH_TOKEN', $authentication->refresh_token);
}
}

View File

@@ -0,0 +1,133 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Containers\EsiConfiguration;
use Seat\Eseye\Exceptions\InvalidContainerDataException;
/**
* Class EsiConfigurationTest
*/
class EsiConfigurationTest extends \PHPUnit_Framework_TestCase
{
protected $esi_configuration;
public function setUp()
{
$this->esi_configuration = new EsiConfiguration;
}
public function testEsiConfigurationInstantiation()
{
$instance = new EsiConfiguration;
$this->assertInstanceOf(EsiConfiguration::class, $instance);
}
public function testFreshEsiConfigurationInstanceIsValid()
{
$this->assertTrue($this->esi_configuration->valid());
}
public function testEsiConfigurationCanAccessAsArrayKey()
{
$this->assertArrayHasKey('datasource', $this->esi_configuration);
}
public function testEsiConfigurationCanAccessAsObjectProperty()
{
$datasource = $this->esi_configuration->datasource;
$this->assertEquals('tranquility', $datasource);
}
public function testCanSetAndAccessConfigurationValueAsArrayKey()
{
$configuration = new EsiConfiguration;
$configuration['test'] = 'test';
$this->assertEquals('test', $configuration['test']);
}
public function testCanSetAndAccessConfigurationValueAsObjectProperty()
{
$configuration = new EsiConfiguration;
$configuration->test = 'test';
$this->assertEquals('test', $configuration->test);
}
public function testEsiConfigurationContainerConstructWithValuePasses()
{
$configuration = new EsiConfiguration([
'datasource' => 'tranquility',
]);
$this->assertInstanceOf(EsiConfiguration::class, $configuration);
}
public function testEsiConfigurationContainerConstructWithUnknownKeyFails()
{
$this->expectException(InvalidContainerDataException::class);
new EsiConfiguration([
'foo' => 'bar',
]);
}
/**
* @param $key The key to check for existence
*
* @dataProvider providerTestRequiredKeysExists
*/
public function testRequiredKeysExists($key)
{
$configuration = new EsiConfiguration;
$this->assertArrayHasKey($key, $configuration);
}
/**
* Keys that _should_ exists in a new Configuration instance
*
* @return array
*/
public function providerTestRequiredKeysExists()
{
return [
['http_user_agent'],
['datasource'],
['logger'],
['logger_level'],
['logfile_location'],
['cache'],
];
}
}

View File

@@ -0,0 +1,241 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Containers\EsiResponse;
class EsiResponseTest extends PHPUnit_Framework_TestCase
{
protected $esi_response;
protected $headers;
public function setUp()
{
// Sample data to work with
$data = json_encode([
'name' => 'Foo',
'details' => [
'age' => 40,
'human' => 'yes',
],
]);
// Sample response headers
$this->headers = $headers = [
"Access-Control-Allow-Credentials" => [
0 => "true",
],
"Access-Control-Allow-Headers" => [
0 => "Content-Type,Authorization,X-User-Agent",
],
"Content-Type" => [
0 => "application/json",
],
"Expires" => [
0 => "Sat, 30 Dec 2017 09:00:32 GMT",
],
"Strict-Transport-Security" => [
0 => "max-age=31536000",
],
"X-Esi-Error-Limit-Remain" => [
0 => "64",
],
"X-Esi-Error-Limit-Reset" => [
0 => "52",
],
"X-Pages" => [
0 => "4",
],
"Date" => [
0 => "Sat, 30 Dec 2017 08:23:08 GMT",
],
];
$this->esi_response = new EsiResponse($data, $headers, 'now', 200);
}
public function testEsiResponseInstantiation()
{
$this->assertInstanceOf(EsiResponse::class, $this->esi_response);
}
public function testEsiResponseTestPayloadIsExpired()
{
$this->assertTrue($this->esi_response->expired());
}
public function testEsiResponseTestPayloadIsNotExpired()
{
$data = json_encode(['foo' => 'bar']);
$esi = new EsiResponse($data, [], '3000-01-01 00:00:00', 200);
$this->assertFalse($esi->expired());
}
public function testEsiResponseDoesNotHaveError()
{
$this->assertNull($this->esi_response->error());
}
public function testEsiResponseDoesHaveError()
{
$data = json_encode(['error' => 'Test Error']);
$esi = new EsiResponse($data, [], 'now', 500);
$this->assertEquals('Test Error', $esi->error());
}
public function testEsiResponseDoesHaveErrorAndDescription()
{
$data = json_encode(['error' => 'Test Error', 'error_description' => 'Test Description']);
$esi = new EsiResponse($data, [], 'now', 500);
$this->assertEquals('Test Error: Test Description', $esi->error());
}
public function testEsiResponseSerializableSingleValueResponse()
{
$data = '29500.01';
$esi = new EsiResponse($data, [], 'now', 200);
$serialized = serialize($esi);
$esi = unserialize($serialized);
$this->assertInstanceOf(EsiResponse::class, $esi);
}
public function testEsiResponseSerializableObjectResponse()
{
$data = '{"foo": "bar"}';
$esi = new EsiResponse($data, [], 'now', 200);
$serialized = serialize($esi);
$esi = unserialize($serialized);
$this->assertInstanceOf(EsiResponse::class, $esi);
}
public function testEsiResponseSerializableArrayResponse()
{
$data = '[1, 2, 3, 4, 5, 6, 7, 8]';
$esi = new EsiResponse($data, [], 'now', 200);
$serialized = serialize($esi);
$esi = unserialize($serialized);
$this->assertInstanceOf(EsiResponse::class, $esi);
}
public function testEsiResponseSerializableArrayObjectResponse()
{
$data = '[{"id": 646465444, "amount": 6546546.33}, {"id": 6568794131, "amount": 464657896584.17}]';
$esi = new EsiResponse($data, [], 'now', 200);
$serialized = serialize($esi);
$esi = unserialize($serialized);
$this->assertInstanceOf(EsiResponse::class, $esi);
}
public function testEsiResponseCanGetErrorCode()
{
$this->assertEquals(200, $this->esi_response->getErrorCode());
}
public function testEsiResponseCanGetDataValue()
{
$this->assertEquals('Foo', $this->esi_response->name);
}
public function testEsiResponseCanGetNestedDataValue()
{
$this->assertEquals('yes', $this->esi_response->details->human);
}
public function testEsiResponseCanGetRawDataFromContainer()
{
$this->assertEquals('{"name":"Foo","details":{"age":40,"human":"yes"}}',
$this->esi_response->raw);
}
public function testEsiResponseCanGetRawResponseHeaders()
{
$this->assertEquals($this->headers, $this->esi_response->raw_headers);
}
public function testEsiResponseCanGetParseHeaderValue()
{
$this->assertEquals('Content-Type,Authorization,X-User-Agent',
$this->esi_response->headers['Access-Control-Allow-Headers']);
}
public function testEsiResponseCanGetParsedPagesFromHeaders()
{
$this->assertEquals(4, $this->esi_response->pages);
}
public function testEsiResponseCanGetParsedErrorLomitFromHeaders()
{
$this->assertEquals(64, $this->esi_response->error_limit);
}
public function testEsiResponseIsNotCachedByDefault()
{
$this->assertFalse($this->esi_response->isCachedLoad());
}
public function testEsiResponseMarksResponseAsCached()
{
$this->esi_response->setIsCachedload();
$this->assertTrue($this->esi_response->isCachedLoad());
}
public function testEsiResponseCanSetExpires()
{
$old_expires = $this->esi_response->expires();
$new_expires = carbon()->addHour();
$this->esi_response->setExpires($new_expires);
$this->assertNotEquals($old_expires, $this->esi_response->expires());
$this->assertNotEquals($old_expires->toRfc7231String(), $this->esi_response->getHeader('expires'));
}
}

393
vendor/eveseat/eseye/tests/EseyeTest.php vendored Normal file
View File

@@ -0,0 +1,393 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use Seat\Eseye\Access\CheckAccess;
use Seat\Eseye\Cache\CacheInterface;
use Seat\Eseye\Cache\FileCache;
use Seat\Eseye\Cache\NullCache;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiAuthentication;
use Seat\Eseye\Eseye;
use Seat\Eseye\Exceptions\EsiScopeAccessDeniedException;
use Seat\Eseye\Exceptions\InvalidAuthenticationException;
use Seat\Eseye\Exceptions\InvalidContainerDataException;
use Seat\Eseye\Exceptions\UriDataMissingException;
use Seat\Eseye\Fetchers\FetcherInterface;
use Seat\Eseye\Fetchers\GuzzleFetcher;
use Seat\Eseye\Log\LogInterface;
use Seat\Eseye\Log\NullLogger;
class EseyeTest extends PHPUnit_Framework_TestCase
{
/**
* @var Eseye
*/
protected $esi;
public function setUp()
{
// Remove logging
$configuration = Configuration::getInstance();
$configuration->logger = NullLogger::class;
// Remove caching
$configuration->cache = NullCache::class;
// Force ESI data-source to be singularity
$configuration->datasource = 'singularity';
$this->esi = new Eseye;
}
public function testEseyeInstantiation()
{
$this->assertInstanceOf(Eseye::class, $this->esi);
}
public function testEseyeInstantiateWithInvalidAuthenticationData()
{
$this->expectException(InvalidContainerDataException::class);
$authentication = new EsiAuthentication([
'foo' => 'bar',
]);
new Eseye($authentication);
}
public function testEseyeInstantiateWithValidAuthenticationData()
{
$authentication = new EsiAuthentication([
'client_id' => 'SSO_CLIENT_ID',
'secret' => 'SSO_SECRET',
'refresh_token' => 'CHARACTER_REFRESH_TOKEN',
]);
new Eseye($authentication);
}
public function testEseyeSetNewInvalidAuthenticationData()
{
$this->expectException(InvalidContainerDataException::class);
$authentication = new EsiAuthentication([
'foo' => 'bar',
'baz' => null,
]);
$this->esi->setAuthentication($authentication);
}
public function testEseyeSetNewValidAuthenticationData()
{
$authentication = new EsiAuthentication([
'client_id' => 'SSO_CLIENT_ID',
'secret' => 'SSO_SECRET',
'access_token' => 'ACCESS_TOKEN',
'refresh_token' => 'CHARACTER_REFRESH_TOKEN',
'token_expires' => '1970-01-01 00:00:00',
'scopes' => ['public'],
]);
$this->esi->setAuthentication($authentication);
}
public function testEseyeGetAuthenticationBeforeSet()
{
$this->expectException(InvalidAuthenticationException::class);
$this->esi->getAuthentication();
}
public function testEseyeGetAuthenticationAfterSet()
{
$authentication = new EsiAuthentication([
'client_id' => 'SSO_CLIENT_ID',
'secret' => 'SSO_SECRET',
'access_token' => 'ACCESS_TOKEN',
'refresh_token' => 'CHARACTER_REFRESH_TOKEN',
'token_expires' => '1970-01-01 00:00:00',
'scopes' => ['public'],
]);
$this->esi->setAuthentication($authentication);
$this->assertInstanceOf(EsiAuthentication::class, $this->esi->getAuthentication());
}
public function testEseyeGetConfigurationInstance()
{
$this->assertInstanceOf(Configuration::class, $this->esi->getConfiguration());
}
public function testEseyeGetLogger()
{
$this->assertInstanceOf(LogInterface::class, $this->esi->getLogger());
}
public function testEseyeSetAccessChecker()
{
$access = $this->createMock(CheckAccess::class);
$this->assertInstanceOf(Eseye::class, $this->esi->setAccessChecker($access));
}
public function testEseyeGetAccessChecker()
{
$this->assertInstanceOf(CheckAccess::class, $this->esi->getAccessChecker());
}
public function testEseyeGetsFetcher()
{
$get_fetcher = self::getMethod('getFetcher');
$return = $get_fetcher->invokeArgs(new Eseye, []);
$this->assertInstanceOf(FetcherInterface::class, $return);
}
/**
* Helper method to set private methods public.
*
* @param $name
*
* @return \ReflectionMethod
*/
protected static function getMethod($name)
{
$class = new ReflectionClass('Seat\Eseye\Eseye');
$method = $class->getMethod($name);
$method->setAccessible(true);
return $method;
}
public function testEseyeGetsCache()
{
$get_fetcher = self::getMethod('getCache');
$return = $get_fetcher->invokeArgs(new Eseye, []);
$this->assertInstanceOf(CacheInterface::class, $return);
}
public function testEseyeGetAndSetQueryString()
{
$object = $this->esi->setQueryString([
'foo' => 'bar',
'foobar' => ['foo', 'bar'],
]);
$this->assertInstanceOf(Eseye::class, $object);
$this->assertEquals([
'foo' => 'bar',
'foobar' => 'foo,bar',
], $this->esi->getQueryString());
}
public function testEseyeGetAndSetBody()
{
$object = $this->esi->setBody(['foo']);
$this->assertInstanceOf(Eseye::class, $object);
$this->assertEquals(['foo'], $this->esi->getBody());
}
public function testEseyeGetDefaultVersionString()
{
$version = $this->esi->getVersion();
$this->assertEquals('/latest', $version);
}
public function testEseyeSetIncompleteVersionStringAndGetsCompleteVersionString()
{
$this->esi->setVersion('v1');
$this->assertEquals('/v1', $this->esi->getVersion());
}
public function testEseyeReturnsEseyeAfterSettingEsiApiVersion()
{
$esi = $this->esi->setVersion('v4');
$this->assertInstanceOf(Eseye::class, $esi);
}
public function testEseyeBuildValidDataUri()
{
$uri = $this->esi->buildDataUri('/{foo}/', ['foo' => 'bar']);
$this->assertEquals('https://esi.evetech.net/latest/bar/?datasource=singularity',
$uri->__toString());
}
public function testEseyeBuildDataUriFailsOnEmptyDataArray()
{
$this->expectException(UriDataMissingException::class);
$this->esi->buildDataUri('/{foo}/', []);
}
public function testEseyeBuildDataUriFailsOnIncompleteDataArray()
{
$this->expectException(UriDataMissingException::class);
$this->esi->buildDataUri('/{foo}/', ['bar' => 'baz']);
}
public function testEseyeMakesEsiApiCallWithCachedResponse()
{
$mock = new MockHandler([
new Response(200, ['Expires' => 'Sat, 28 Jan 4017 05:46:49 GMT'], json_encode(['foo' => 'bar'])),
]);
$fetcher = new GuzzleFetcher;
$fetcher->setClient(new Client([
'handler' => HandlerStack::create($mock),
]));
// Update the fetchers client
$this->esi->setFetcher($fetcher);
$response = $this->esi->invoke('get', '/foo');
$this->assertEquals('bar', $response->foo);
}
public function testEseyeMakesEsiApiCallWithExpiredCachedResponseAndValidEtag()
{
$mock = new MockHandler([
new Response(200, [
'Expires' => carbon()->addSeconds(3)->toRfc7231String(),
'ETag' => 'W/"b3ef78b1064a27974cbf18270c1f126d519f7b467ba2e35ccb6f0819"',
], json_encode(['foo' => 'bar'])),
new Response(304, [
'Expires' => carbon()->addHour()->toRfc7231String(),
'ETag' => 'W/"b3ef78b1064a27974cbf18270c1f126d519f7b467ba2e35ccb6f0819"',
]),
]);
$config = Configuration::getInstance();
$config->cache = FileCache::class;
$fetcher = new GuzzleFetcher;
$fetcher->setClient(new Client([
'handler' => HandlerStack::create($mock),
]));
// Update the fetchers client
$this->esi->setFetcher($fetcher);
// send an initial call to seed cache
$response = $this->esi->invoke('get', '/foo2');
$this->assertFalse($response->isCachedLoad());
sleep(5);
// send a new call to trigger cache
$response = $this->esi->invoke('get', '/foo2');
$this->assertTrue($response->isCachedLoad());
}
public function testEseyeMakesEsiApiCallWithoutCachedResponse()
{
$mock = new MockHandler([
new Response(200, ['Foo' => 'Bar'], json_encode(['foo' => 'bar'])),
]);
$fetcher = new GuzzleFetcher;
$fetcher->setClient(new Client([
'handler' => HandlerStack::create($mock),
]));
// Update the fetchers client
$this->esi->setFetcher($fetcher);
$response = $this->esi->invoke('post', '/foo');
$this->assertEquals('bar', $response->foo);
}
public function testEseyeMakesEsiApiCallToAuthenticatedEndpointWithoutAccess()
{
$this->expectException(EsiScopeAccessDeniedException::class);
$mock = new MockHandler([
new Response(401),
]);
// Update the fetchers client
$this->esi->setFetcher(new GuzzleFetcher(null, new Client([
'handler' => HandlerStack::create($mock),
])));
$this->esi->invoke('get', '/characters/{character_id}/assets/', [
'character_id' => 123,
]);
}
public function testEseyeSetRefreshToken()
{
$authentication = new EsiAuthentication([
'client_id' => 'SSO_CLIENT_ID',
'secret' => 'SSO_SECRET',
'access_token' => 'ACCESS_TOKEN',
'refresh_token' => 'CHARACTER_REFRESH_TOKEN',
'token_expires' => '1970-01-01 00:00:00',
'scopes' => ['public'],
]);
$this->esi->setAuthentication($authentication);
$this->esi->setRefreshToken('ALTERNATE_REFRESH_TOKEN');
$this->assertEquals('ALTERNATE_REFRESH_TOKEN', $this->esi->getAuthentication()->refresh_token);
}
}

View File

@@ -0,0 +1,69 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Containers\EsiResponse;
use Seat\Eseye\Exceptions\RequestFailedException;
class RequestFailedExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var RequestFailedException
*/
protected $exception;
public function setUp()
{
$this->exception = new RequestFailedException(new Exception('Foo'), new EsiResponse(
json_encode(['error' => 'test']),
[],
'now',
500
));
}
public function testRequestFailedGetsErrors()
{
$error = $this->exception->getError();
$this->assertEquals('test', $error);
}
public function testRequestFailedGetsEsiResponse()
{
$response = $this->exception->getEsiResponse();
$this->assertInstanceOf(EsiResponse::class, $response);
}
public function testRequestFailedGetsOriginalException()
{
$response = $this->exception->getOriginalException();
$this->assertInstanceOf(Exception::class, $response);
}
}

View File

@@ -0,0 +1,385 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use Jose\Component\Core\JWK;
use Jose\Easy\Build;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiAuthentication;
use Seat\Eseye\Containers\EsiResponse;
use Seat\Eseye\Exceptions\InvalidAuthenticationException;
use Seat\Eseye\Exceptions\RequestFailedException;
use Seat\Eseye\Fetchers\GuzzleFetcher;
use Seat\Eseye\Log\NullLogger;
class GuzzleFetcherTest extends PHPUnit_Framework_TestCase
{
/**
* @var GuzzleFetcher
*/
protected $fetcher;
public function setUp()
{
// Remove logging
$configuration = Configuration::getInstance();
$configuration->logger = NullLogger::class;
$this->fetcher = new GuzzleFetcher;
}
public function testGuzzleFetcherInstantiation()
{
$this->assertInstanceOf(GuzzleFetcher::class, $this->fetcher);
}
public function testGuzzleGetsClientIfNoneSet()
{
$fetcher = new GuzzleFetcher;
$client = $fetcher->getClient();
$this->assertInstanceOf(Client::class, $client);
}
public function testGuzzleFetcherStripRefreshTokenFromUrl()
{
$url = 'https://esi.url/oauth?type=refresh_token&refresh_token=foo';
$stripped = $this->fetcher->stripRefreshTokenValue($url);
$this->assertEquals('https://esi.url/oauth?type=refresh_token', $stripped);
}
public function testGuzzleFetcherStripRefreshTokenFromUrlWithoutRefreshToken()
{
$url = 'https://esi.url/type=refresh_token';
$stripped = $this->fetcher->stripRefreshTokenValue($url);
$this->assertEquals('https://esi.url/type=refresh_token', $stripped);
}
public function testGuzzleFetcherStripRefreshTokenNoTokenMention()
{
$url = 'https://esi.url/foo=bar';
$stripped = $this->fetcher->stripRefreshTokenValue($url);
$this->assertEquals($url, $stripped);
}
public function testGuzzleFetcherMakeEsiResponseContainer()
{
$response = json_encode(['response' => 'ok']);
$container = $this->fetcher->makeEsiResponse($response, [], 'now', 200);
$this->assertInstanceOf(EsiResponse::class, $container);
}
public function testGuzzleFetcherGetAuthenticationWhenNoneSet()
{
$authentication = $this->fetcher->getAuthentication();
$this->assertNull($authentication);
}
public function testGuzzleFetcherGetAuthenticationWhenSettingAuthentication()
{
$fetcher = new GuzzleFetcher(new EsiAuthentication([
'client_id' => 'foo',
]));
$this->assertInstanceOf(EsiAuthentication::class, $fetcher->getAuthentication());
}
public function testGuzzleSetsAuthentication()
{
$this->fetcher->setAuthentication(new EsiAuthentication([
'client_id' => 'foo',
'secret' => 'bar',
'access_token' => '_',
'refresh_token' => 'baz',
'token_expires' => '1970-01-01 00:00:00',
'scopes' => ['public'],
]));
$this->assertInstanceOf(EsiAuthentication::class, $this->fetcher->getAuthentication());
}
public function testGuzzleFailsSettingInvalidAuthentication()
{
$this->expectException(InvalidAuthenticationException::class);
$this->fetcher->setAuthentication(new EsiAuthentication([
'client_id' => null,
]));
}
public function testGuzzleShouldFailGettingTokenWithoutAuthentication()
{
$this->expectException(InvalidAuthenticationException::class);
$get_token = self::getMethod('getToken');
$get_token->invokeArgs(new GuzzleFetcher, []);
}
/**
* Helper method to set private methods public.
*
* @param $name
*
* @return \ReflectionMethod
*/
protected static function getMethod($name)
{
$class = new ReflectionClass('Seat\Eseye\Fetchers\GuzzleFetcher');
$method = $class->getMethod($name);
$method->setAccessible(true);
return $method;
}
public function testGuzzleFetcherGetPublicScopeWithoutAuthentication()
{
$scopes = $this->fetcher->getAuthenticationScopes();
$this->assertEquals(1, count($scopes));
}
public function testGuzzleCallingWithoutAuthentication()
{
$mock = new MockHandler([
new Response(200, ['X-Foo' => 'Bar'], json_encode(['foo' => 'var'])),
]);
// Update the fetchers client
$this->fetcher->setClient(new Client([
'handler' => HandlerStack::create($mock),
]));
$response = $this->fetcher->call('get', '/foo', ['foo' => 'bar']);
$this->assertInstanceOf(EsiResponse::class, $response);
}
public function testGuzzleCallingWithAuthentication()
{
// init a JWK set
$jwk = $this->getJwkSet();
// generate a JWS Token mocking standard CCP format
$jws = $this->getJwsToken($jwk);
$mock = new MockHandler([
// RefreshToken response
new Response(200, ['X-Foo' => 'Bar'], json_encode([
'access_token' => $jws,
'expires_in' => 1200,
'token_type' => 'Bearer',
'refresh_token' => 'bar',
])),
// JWKS endpoint response
new Response(200, [], json_encode([
'jwks_uri' => 'https://login.eveonline.com/oauth/jwks',
])),
// JWK Sets response
new Response(200, [], json_encode([
'keys' => [
$jwk->jsonSerialize(),
],
'SkipUnresolvedJsonWebKeys' => true,
])),
// ESI response
new Response(200, ['X-Foo' => 'Bar'], json_encode(['foo' => 'var'])),
]);
// Update the fetchers client
$this->fetcher->setClient(new Client([
'handler' => HandlerStack::create($mock),
]));
// Update the fetchers authentication
$this->fetcher->setAuthentication(new EsiAuthentication([
'client_id' => 'foo',
'secret' => 'bar',
'access_token' => '_',
'refresh_token' => 'baz',
'token_expires' => '1970-01-01 00:00:00',
'scopes' => ['public'],
]));
$response = $this->fetcher->call('get', '/foo', ['foo' => 'bar']);
$this->assertInstanceOf(EsiResponse::class, $response);
}
public function testGuzzleCallingCatchesRequestAuthenticationFailure()
{
$this->expectException(RequestFailedException::class);
$mock = new MockHandler([
new Response(401),
]);
// Update the fetchers client
$this->fetcher->setClient(new Client([
'handler' => HandlerStack::create($mock),
]));
$this->fetcher->call('get', '/foo', ['foo' => 'bar']);
}
public function testGuzzleFetcherMakesHttpRequest()
{
$mock = new MockHandler([
new Response(200, ['X-Foo' => 'Bar'], json_encode(['foo' => 'var'])),
]);
// Update the fetchers client
$this->fetcher->setClient(new Client([
'handler' => HandlerStack::create($mock),
]));
$response = $this->fetcher->httpRequest('get', '/foo');
$this->assertInstanceOf(EsiResponse::class, $response);
}
public function testGuzzleConstructsWithClientAndGetsAuthenticationScopes()
{
// init a JWK Set
$jwk = $this->getJwkSet();
// init a JWS Token
$jws = $this->getJwsToken($jwk);
$mock = new MockHandler([
// JWK Endpoint
new Response(200, [], json_encode([
'jwks_uri' => 'https://login.eveonline.com/oauth/jwks',
])),
// JWK Sets response
new Response(200, [], json_encode([
'keys' => [
$jwk->jsonSerialize(),
],
'SkipUnresolvedJsonWebKeys' => true,
])),
]);
// Update the fetchers client
$client = new Client([
'handler' => HandlerStack::create($mock),
]);
// Update the fetchers authentication
$authentication = new EsiAuthentication([
'client_id' => 'foo',
'secret' => 'bar',
'access_token' => $jws,
'refresh_token' => 'baz',
'token_expires' => '1970-01-01 00:00:00',
]);
$fetcher = new GuzzleFetcher($authentication);
$fetcher->setClient($client);
$scopes = $fetcher->getAuthenticationScopes();
$this->assertEquals(['foo', 'bar', 'baz', 'public'], $scopes);
}
/**
* @return \Jose\Component\Core\JWK
*/
private function getJwkSet()
{
return new JWK([
"p" => "1UQV33bi2J-WJ9529sOTuXiAGCh_lcUAgRHayLbBSElC9O_kA8g2ipC0Qu58tpKdKjq2dD7_SfbESqEI0AJD7oMfP1i-Ispn31vjIb7fmnlddF2qflc9SEkWkrZPCntusTzIraxBDUwIlmdOdAI24xHHpGe-DISE4R1LYrQS0m0",
"kty" => "RSA",
"q" => "yaEesJOxfHkeYvlo8f1NVCrCyxfzDl3_-_qDm-bpdUDjemsvolYD6AEb0GGiyjFdMJg29iCke_8nzYIuwDf2QzFS96aU0IpxLwyNsXBdOr7K53WmDj7LU4xFfR-gaOQEp-o2KZ7-1EqpPRgeI12wVpfR3Mi4TZuXlgmeyYpt_BU",
"d" => "iZo3pjr-cegcZN2lk3I3qL8By-8bSO4DaZdih6BnHB-VJbhhmSky64wP34wpKe_G486C1o9IsVZ6zuhXrOJdEOIike3d0IKg6jNY24RsV-AX5hYn44Us8ePHQnhqtxf42GujloroctLkAJAlpnYg6-rWW7kAoCjrNxVIaJ4AOabIcpIQwNwqHNjWifik6WttpC_-u-4HmTLG6f-NrVqrSJkBTReRCjsSYz1GH_snBGx2SFS5XbEfvWe0g-Asu8kZPzYL7y5ahMZ3AT4qOjNA-UFkIzYW0BQjwMwTzRq_30bTDZXBLH8YbDCD6HwBhVThmX4k6AjWr4yG7-uJfvTAgQ",
"e" => "AQAB",
"use" => "sig",
"kid" => "JWK Signature Mock",
"qi" => "baoXJXUnqalu6CMibn1aILUhfDbjW_lVVk-b9ZAK7ZVi8vEKDpvFWTeB-R-kZMaQcYZKSOZshfXSOd8p_hpCY7nL5XuQPndR2jg23vnsddppT8dwOsiOPX1gQufwrtTQX9oibcDX1P5z942esrbHW5ttEkgM4i8Xo5G7tkKed8k",
"dp" => "d2kK8jdn5rDca3Blnd9-HFA7MMukPGC02o_7t3yUlnvm0KxtOCznVQiW1g8gpz1KYLXFKSuI14oi-EJYY9eQ38BtQ5PVyjcYl_ikIWX1X1HrINe9OcZxGsNJr1YCxbS9EuIc3xlexyo2eLhZNh1zTArNhOFNiUa9_Cnh5t861rU",
"alg" => "RS256",
"dq" => "rUXJGfXSkSWE94leppcH3UziGaZ7Od2OHv0qHNBT0G_zDUEPrnI86SQKwwkk3J2PeDNXCC0FLYoYqoM1qfptp1C7_BcrzAstOUGQguwNMm7D8CUqjxNnqGTjUqPbNki9t4-O_DWmyMlgpyASxlG9OK0_rHzR5d_QZR_fVVOhMQ",
"n" => "p_iuj0pLDqQsdtXl6cJ8Gqhtm8F5dUSbmNPYoNbB_uM0oQrBBxvKPH7GzDduFMtS6LfloH3hGryTum-lxU1yQ4PjaN3IEdrGpqS6_OWtqZ6mRWrDDNdgWmkFtq5kPwfR2EXdcygWREJ7w1376WWx9l3tVu6zygfCghTTUhVT65fjmnNUR6zWJn15pxTjnQ-zphKlgvWnCDwJEW9UFXK025ztMQFn8rkTxJV9O3Qu3QS-VRjVicPhV7oOMs2YhiqUAmnzu285nKTaG6N_83NIZ5W2N06JfMt6epvTiC-st2joQp4FCsiVPEEQ6wjZJTA7cpdmIoc05X7gMKdipxeO8Q"
]);
}
/**
* @param \Jose\Component\Core\JWK $jwk
* @return string
*/
private function getJwsToken(JWK $jwk): string
{
$time = time();
return Build::jws()
->exp($time + 1200)
->alg('RS256')
->payload([
'scp' => [
"foo",
"bar",
"baz",
"public",
],
"jti" => "7f64ea9f-ee6e-4c4a-9486-d668e8c79f25",
"kid" => "JWT-Signature-Key",
"sub" => "CHARACTER:EVE:90795931",
"azp" => "foo",
"name" => "Warlof Tutsimo",
"owner" => "svnSjVa1uGYyp/ZL3mfkIwkJYzQ=",
"exp" => $time + 3600,
"iss" => "login.eveonline.com",
])
->header('typ', 'JWT')
->header('kid', 'JWT-Signature-Key')
->sign($jwk);
}
}

View File

@@ -0,0 +1,95 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Monolog\Logger;
use org\bovigo\vfs\vfsStream;
use Seat\Eseye\Configuration;
use Seat\Eseye\Log\FileLogger;
class FileLoggerTest extends PHPUnit_Framework_TestCase
{
protected $root;
protected $logger;
public function setUp()
{
// Set the file cache path in the config singleton
$this->root = vfsStream::setup('logs/');
Configuration::getInstance()->logfile_location = vfsStream::url('logs/');
$this->logger = new FileLogger;
}
public function testFileLoggerWritesLogInfo()
{
$this->logger->log('foo');
$logfile_content = $this->root->getChild('eseye.log')->getContent();
$this->assertContains('eseye.INFO: foo', $logfile_content);
}
public function testFileLoggerSkipWritesLogDebugWithoutRequiredLevel()
{
$this->logger->debug('foo');
$logfile_content = $this->root->getChild('eseye.log');
$this->assertNull($logfile_content);
}
public function testFileLoggerWritesLogDebug()
{
Configuration::getInstance()->logger_level = 'debug';
// Init a new logger with the updated config
$logger = new FileLogger;
$logger->debug('foo');
$logfile_content = $this->root->getChild('eseye.log')->getContent();
$this->assertContains('eseye.DEBUG: foo', $logfile_content);
}
public function testFileLoggerWritesLogWarning()
{
$this->logger->warning('foo');
$logfile_content = $this->root->getChild('eseye.log')->getContent();
$this->assertContains('eseye.WARNING: foo', $logfile_content);
}
public function testFileLoggerWritesLogError()
{
$this->logger->error('foo');
$logfile_content = $this->root->getChild('eseye.log')->getContent();
$this->assertContains('eseye.ERROR: foo', $logfile_content);
}
}

View File

@@ -0,0 +1,61 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Seat\Eseye\Log\NullLogger;
class NullLoggerTest extends PHPUnit_Framework_TestCase
{
protected $logger;
public function setUp()
{
$this->logger = new NullLogger;
}
public function testNullLoggerIgnoresInfo()
{
$this->assertNull($this->logger->log('foo'));
}
public function testNullLoggerIgnoresDebug()
{
$this->assertNull($this->logger->debug('foo'));
}
public function testNullLoggerIgnoresWarning()
{
$this->assertNull($this->logger->warning('foo'));
}
public function testNullLoggerIgnoresError()
{
$this->assertNull($this->logger->error('foo'));
}
}

View File

@@ -0,0 +1,101 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015, 2016, 2017 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use Monolog\Logger;
use org\bovigo\vfs\vfsStream;
use Seat\Eseye\Configuration;
use Seat\Eseye\Log\RotatingFileLogger;
class RotatingFileLoggerTest extends PHPUnit_Framework_TestCase
{
protected $root;
protected $logger;
protected $logfile_name;
public function setUp()
{
// Set the file cache path in the config singleton
$this->root = vfsStream::setup('logs');
Configuration::getInstance()->logfile_location = $this->root->url();
Configuration::getInstance()->logger_level = 'info';
$this->logger = new RotatingFileLogger;
# Shitty hack to get the filename to expect. Format: eseye-2018-05-06.log
$this->logfile_name = 'eseye-' . date('Y-m-d') . '.log';
}
public function testFileLoggerWritesLogInfo()
{
$this->logger->log('foo');
$logfile_content = $this->root->getChild($this->logfile_name)->getContent();
$this->assertContains('eseye.INFO: foo', $logfile_content);
}
public function testFileLoggerSkipWritesLogDebugWithoutRequiredLevel()
{
$this->logger->debug('foo');
$logfile_content = $this->root->getChild($this->logfile_name);
$this->assertNull($logfile_content);
}
public function testFileLoggerWritesLogDebug()
{
Configuration::getInstance()->logger_level = 'debug';
// Init a new logger with the updated config
$logger = new RotatingFileLogger;
$logger->debug('foo');
$logfile_content = $this->root->getChild($this->logfile_name)->getContent();
$this->assertContains('eseye.DEBUG: foo', $logfile_content);
}
public function testFileLoggerWritesLogWarning()
{
$this->logger->warning('foo');
$logfile_content = $this->root->getChild($this->logfile_name)->getContent();
$this->assertContains('eseye.WARNING: foo', $logfile_content);
}
public function testFileLoggerWritesLogError()
{
$this->logger->error('foo');
$logfile_content = $this->root->getChild($this->logfile_name)->getContent();
$this->assertContains('eseye.ERROR: foo', $logfile_content);
}
}

1
vendor/eveseat/eseye/tools/esi.json vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,57 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
echo 'Reading esi.json ..' . PHP_EOL;
$esi = json_decode(file_get_contents('esi.json'), true);
echo 'ESI Version: ' . $esi['info']['version'] . PHP_EOL;
$scope_map = [
'get' => [],
'post' => [],
'put' => [],
'delete' => [],
'patch' => [],
];
echo 'Mapping Scopes to endpoints and methods ..' . PHP_EOL;
foreach ($esi['paths'] as $path => $description) {
foreach ($description as $method => $data) {
if (isset($data['security']))
$scope = $data['security'][0]['evesso'][0];
else
$scope = 'public';
// Update the scope map!
$scope_map[$method][$path] = $scope;
echo $method . ' | ' . $path . ' | ' . $scope . PHP_EOL;
}
}
// Output the scopes in a way that we can
// copy/pasta in code!
echo 'Var Export of the scope map:' . PHP_EOL;
echo PHP_EOL;
var_export($scope_map);
echo PHP_EOL;

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,28 @@
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
include '../vendor/autoload.php';
$client = new \GuzzleHttp\Client();
$client->request('get', 'https://esi.evetech.net/latest/swagger.json?datasource=tranquility', [
'sink' => 'esi.json',
]);

47
vendor/fgrosse/phpasn1/CHANGELOG.md vendored Normal file
View File

@@ -0,0 +1,47 @@
#### v2.2.0 (2020-08)
* support polyfills for bcmath and gmp, and add a composer.json
suggestion for the `phpseclib/bcmath_polyfill` for servers unable
to install PHP the gmp or bcmath extensions.
#### v.2.1.1 & &v.2.0.2 (2018-12)
* add stricter validation around some structures, highlighed
by wycheproof test suite
#### v.2.1.0 (2018-03)
* add support for `bcmath` extension (making `gmp` optional)<br>
https://github.com/fgrosse/PHPASN1/pull/68
#### v.2.0.1 & v.1.5.3 (2017-12)
* add .gitattributes file to prevent examples and tests to be installed via composer when --prefer-dist was set
#### v.2.0.0 (2017-08)
* rename `FG\ASN1\Object` to `FG\ASN1\ASNObject` because `Object` is a special class name in the next major PHP release
- when you upgrade you have to adapt all corresponding `use` and `extends` statements as well as type hints and all
usages of `Object::fromBinary(…)`.
* generally drop PHP 5.6 support
#### v.1.5.2 (2016-10-29)
* allow empty octet strings
#### v.1.5.1 (2015-10-02)
* add keywords to composer.json (this is a version on its own so the keywords are found on a stable version at packagist.org)
#### v.1.5.0 (2015-10-30)
* fix a bug that would prevent you from decoding context specific tags on multiple objects [#57](https://github.com/fgrosse/PHPASN1/issues/57)
- `ExplicitlyTaggedObject::__construct` does now accept multiple objects to be tagged with a single tag
- `ExplicitlyTaggedObject::getContent` will now always return an array (even if only one object is tagged)
#### v.1.4.2 (2015-09-29)
* fix a bug that would prevent you from decoding empty tagged objects [#57](https://github.com/fgrosse/PHPASN1/issues/57)
#### v.1.4.1
* improve exception messages and general error handling [#55](https://github.com/fgrosse/PHPASN1/pull/55)
#### v.1.4.0
* **require PHP 5.6**
* support big integers (closes #1 and #37)
* enforce one code style via [styleci.io][9]
* track code coverage via [coveralls.io][10]
* replace obsolete `FG\ASN1\Exception\GeneralException` with `\Exception`
* `Construct` (`Sequence`, `Set`) does now implement `ArrayAccess`, `Countable` and `Iterator` so its easier to use
* add [`TemplateParser`][11]

19
vendor/fgrosse/phpasn1/LICENSE vendored Normal file
View File

@@ -0,0 +1,19 @@
Copyright (c) 2012-2015 Friedrich Große <friedrich.grosse@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

167
vendor/fgrosse/phpasn1/README.md vendored Normal file
View File

@@ -0,0 +1,167 @@
PHPASN1
=======
[![Build Status](https://secure.travis-ci.org/fgrosse/PHPASN1.png?branch=master)](http://travis-ci.org/fgrosse/PHPASN1)
[![PHP 7 ready](http://php7ready.timesplinter.ch/fgrosse/PHPASN1/badge.svg)](https://travis-ci.org/fgrosse/PHPASN1)
[![Coverage Status](https://coveralls.io/repos/fgrosse/PHPASN1/badge.svg?branch=master&service=github)](https://coveralls.io/github/fgrosse/PHPASN1?branch=master)
[![Latest Stable Version](https://poser.pugx.org/fgrosse/phpasn1/v/stable.png)](https://packagist.org/packages/fgrosse/phpasn1)
[![Total Downloads](https://poser.pugx.org/fgrosse/phpasn1/downloads.png)](https://packagist.org/packages/fgrosse/phpasn1)
[![Latest Unstable Version](https://poser.pugx.org/fgrosse/phpasn1/v/unstable.png)](https://packagist.org/packages/fgrosse/phpasn1)
[![License](https://poser.pugx.org/fgrosse/phpasn1/license.png)](https://packagist.org/packages/fgrosse/phpasn1)
A PHP Framework that allows you to encode and decode arbitrary [ASN.1][3] structures
using the [ITU-T X.690 Encoding Rules][4].
This encoding is very frequently used in [X.509 PKI environments][5] or the communication between heterogeneous computer systems.
The API allows you to encode ASN.1 structures to create binary data such as certificate
signing requests (CSR), X.509 certificates or certificate revocation lists (CRL).
PHPASN1 can also read [BER encoded][6] binary data into separate PHP objects that can be manipulated by the user and reencoded afterwards.
The **changelog** can now be found at [CHANGELOG.md](CHANGELOG.md).
## Dependencies
PHPASN1 requires at least `PHP 7.0` and either the `gmp` or `bcmath` extension.
Support for older PHP versions (i.e. PHP 5.6) was dropped starting with `v2.0`.
If you must use an outdated PHP version consider using [PHPASN v1.5][13].
For the loading of object identifier names directly from the web [curl][7] is used.
## Installation
The preferred way to install this library is to rely on [Composer][2]:
```bash
$ composer require fgrosse/phpasn1
```
## Usage
### Encoding ASN.1 Structures
PHPASN1 offers you a class for each of the implemented ASN.1 universal types.
The constructors should be pretty self explanatory so you should have no big trouble getting started.
All data will be encoded using [DER encoding][8]
```php
use FG\ASN1\OID;
use FG\ASN1\Universal\Integer;
use FG\ASN1\Universal\Boolean;
use FG\ASN1\Universal\Enumerated;
use FG\ASN1\Universal\IA5String;
use FG\ASN1\Universal\ObjectIdentifier;
use FG\ASN1\Universal\PrintableString;
use FG\ASN1\Universal\Sequence;
use FG\ASN1\Universal\Set;
use FG\ASN1\Universal\NullObject;
$integer = new Integer(123456);
$boolean = new Boolean(true);
$enum = new Enumerated(1);
$ia5String = new IA5String('Hello world');
$asnNull = new NullObject();
$objectIdentifier1 = new ObjectIdentifier('1.2.250.1.16.9');
$objectIdentifier2 = new ObjectIdentifier(OID::RSA_ENCRYPTION);
$printableString = new PrintableString('Foo bar');
$sequence = new Sequence($integer, $boolean, $enum, $ia5String);
$set = new Set($sequence, $asnNull, $objectIdentifier1, $objectIdentifier2, $printableString);
$myBinary = $sequence->getBinary();
$myBinary .= $set->getBinary();
echo base64_encode($myBinary);
```
### Decoding binary data
Decoding BER encoded binary data is just as easy as encoding it:
```php
use FG\ASN1\ASNObject;
$base64String = ...
$binaryData = base64_decode($base64String);
$asnObject = ASNObject::fromBinary($binaryData);
// do stuff
```
If you already know exactly how your expected data should look like you can use the `FG\ASN1\TemplateParser`:
```php
use FG\ASN1\TemplateParser;
// first define your template
$template = [
Identifier::SEQUENCE => [
Identifier::SET => [
Identifier::OBJECT_IDENTIFIER,
Identifier::SEQUENCE => [
Identifier::INTEGER,
Identifier::BITSTRING,
]
]
]
];
// if your binary data is not matching the template you provided this will throw an `\Exception`:
$parser = new TemplateParser();
$object = $parser->parseBinary($data, $template);
// there is also a convenience function if you parse binary data from base64:
$object = $parser->parseBase64($data, $template);
```
You can use this function to make sure your data has exactly the format you are expecting.
### Navigating decoded data
All constructed classes (i.e. `Sequence` and `Set`) can be navigated by array access or using an iterator.
You can find examples
[here](https://github.com/fgrosse/PHPASN1/blob/f6442cadda9d36f3518c737e32f28300a588b777/tests/ASN1/Universal/SequenceTest.php#L148-148),
[here](https://github.com/fgrosse/PHPASN1/blob/f6442cadda9d36f3518c737e32f28300a588b777/tests/ASN1/Universal/SequenceTest.php#L121) and
[here](https://github.com/fgrosse/PHPASN1/blob/f6442cadda9d36f3518c737e32f28300a588b777/tests/ASN1/TemplateParserTest.php#L45).
### Give me more examples!
To see some example usage of the API classes or some generated output check out the [examples](https://github.com/fgrosse/PHPASN1/tree/master/examples).
### How do I contribute?
If you found an issue or have a question submit a github issue with detailed information.
In case you already know what caused the issue and feel in the mood to fix it, your code contributions are always welcome. Just fork the repository, implement your changes and make sure that you covered everything with tests.
Afterwards submit a pull request via github and be a little patient :) I usually try to comment and/or merge as soon as possible.
#### Mailing list
New features or questions can be discussed in [this google group/mailing list][12].
### Thanks
To [all contributors][1] so far!
## License
This library is distributed under the [MIT License](LICENSE).
[1]: https://github.com/fgrosse/PHPASN1/graphs/contributors
[2]: https://getcomposer.org/
[3]: http://www.itu.int/ITU-T/asn1/
[4]: http://www.itu.int/ITU-T/recommendations/rec.aspx?rec=x.690
[5]: http://en.wikipedia.org/wiki/X.509
[6]: http://en.wikipedia.org/wiki/X.690#BER_encoding
[7]: http://php.net/manual/en/book.curl.php
[8]: http://en.wikipedia.org/wiki/X.690#DER_encoding
[9]: https://styleci.io
[10]: https://coveralls.io/github/fgrosse/PHPASN1
[11]: https://github.com/fgrosse/PHPASN1/blob/master/tests/ASN1/TemplateParserTest.php#L16
[12]: https://groups.google.com/d/forum/phpasn1
[13]: https://packagist.org/packages/fgrosse/phpasn1#1.5.2

49
vendor/fgrosse/phpasn1/composer.json vendored Normal file
View File

@@ -0,0 +1,49 @@
{
"name": "fgrosse/phpasn1",
"description": "A PHP Framework that allows you to encode and decode arbitrary ASN.1 structures using the ITU-T X.690 Encoding Rules.",
"type": "library",
"homepage": "https://github.com/FGrosse/PHPASN1",
"license": "MIT",
"authors": [
{
"name": "Friedrich Große",
"email": "friedrich.grosse@gmail.com",
"homepage": "https://github.com/FGrosse",
"role": "Author"
},
{
"name": "All contributors",
"homepage": "https://github.com/FGrosse/PHPASN1/contributors"
}
],
"keywords": [ "x690", "x.690", "x.509", "x509", "asn1", "asn.1", "ber", "der", "binary", "encoding", "decoding" ],
"require": {
"php": ">=7.0.0"
},
"require-dev": {
"phpunit/phpunit": "~6.3",
"satooshi/php-coveralls": "~2.0"
},
"suggest": {
"ext-gmp": "GMP is the preferred extension for big integer calculations",
"ext-bcmath": "BCmath is the fallback extension for big integer calculations",
"phpseclib/bcmath_compat": "BCmath polyfill for servers where neither GMP nor BCmath is available",
"ext-curl": "For loading OID information from the web if they have not bee defined statically"
},
"autoload": {
"psr-4": {
"FG\\": "lib/"
}
},
"autoload-dev": {
"psr-4": {
"FG\\Test\\": "tests/"
}
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
}
}

View File

@@ -0,0 +1,355 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1;
use FG\ASN1\Exception\ParserException;
use FG\ASN1\Universal\BitString;
use FG\ASN1\Universal\Boolean;
use FG\ASN1\Universal\Enumerated;
use FG\ASN1\Universal\GeneralizedTime;
use FG\ASN1\Universal\Integer;
use FG\ASN1\Universal\NullObject;
use FG\ASN1\Universal\ObjectIdentifier;
use FG\ASN1\Universal\RelativeObjectIdentifier;
use FG\ASN1\Universal\OctetString;
use FG\ASN1\Universal\Sequence;
use FG\ASN1\Universal\Set;
use FG\ASN1\Universal\UTCTime;
use FG\ASN1\Universal\IA5String;
use FG\ASN1\Universal\PrintableString;
use FG\ASN1\Universal\NumericString;
use FG\ASN1\Universal\UTF8String;
use FG\ASN1\Universal\UniversalString;
use FG\ASN1\Universal\CharacterString;
use FG\ASN1\Universal\GeneralString;
use FG\ASN1\Universal\VisibleString;
use FG\ASN1\Universal\GraphicString;
use FG\ASN1\Universal\BMPString;
use FG\ASN1\Universal\T61String;
use FG\ASN1\Universal\ObjectDescriptor;
use FG\Utility\BigInteger;
use LogicException;
/**
* Class ASNObject is the base class for all concrete ASN.1 objects.
*/
abstract class ASNObject implements Parsable
{
private $contentLength;
private $nrOfLengthOctets;
/**
* Must return the number of octets of the content part.
*
* @return int
*/
abstract protected function calculateContentLength();
/**
* Encode the object using DER encoding.
*
* @see http://en.wikipedia.org/wiki/X.690#DER_encoding
*
* @return string the binary representation of an objects value
*/
abstract protected function getEncodedValue();
/**
* Return the content of this object in a non encoded form.
* This can be used to print the value in human readable form.
*
* @return mixed
*/
abstract public function getContent();
/**
* Return the object type octet.
* This should use the class constants of Identifier.
*
* @see Identifier
*
* @return int
*/
abstract public function getType();
/**
* Returns all identifier octets. If an inheriting class models a tag with
* the long form identifier format, it MUST reimplement this method to
* return all octets of the identifier.
*
* @throws LogicException If the identifier format is long form
*
* @return string Identifier as a set of octets
*/
public function getIdentifier()
{
$firstOctet = $this->getType();
if (Identifier::isLongForm($firstOctet)) {
throw new LogicException(sprintf('Identifier of %s uses the long form and must therefor override "ASNObject::getIdentifier()".', get_class($this)));
}
return chr($firstOctet);
}
/**
* Encode this object using DER encoding.
*
* @return string the full binary representation of the complete object
*/
public function getBinary()
{
$result = $this->getIdentifier();
$result .= $this->createLengthPart();
$result .= $this->getEncodedValue();
return $result;
}
private function createLengthPart()
{
$contentLength = $this->getContentLength();
$nrOfLengthOctets = $this->getNumberOfLengthOctets($contentLength);
if ($nrOfLengthOctets == 1) {
return chr($contentLength);
} else {
// the first length octet determines the number subsequent length octets
$lengthOctets = chr(0x80 | ($nrOfLengthOctets - 1));
for ($shiftLength = 8 * ($nrOfLengthOctets - 2); $shiftLength >= 0; $shiftLength -= 8) {
$lengthOctets .= chr($contentLength >> $shiftLength);
}
return $lengthOctets;
}
}
protected function getNumberOfLengthOctets($contentLength = null)
{
if (!isset($this->nrOfLengthOctets)) {
if ($contentLength == null) {
$contentLength = $this->getContentLength();
}
$this->nrOfLengthOctets = 1;
if ($contentLength > 127) {
do { // long form
$this->nrOfLengthOctets++;
$contentLength = $contentLength >> 8;
} while ($contentLength > 0);
}
}
return $this->nrOfLengthOctets;
}
protected function getContentLength()
{
if (!isset($this->contentLength)) {
$this->contentLength = $this->calculateContentLength();
}
return $this->contentLength;
}
protected function setContentLength($newContentLength)
{
$this->contentLength = $newContentLength;
$this->getNumberOfLengthOctets($newContentLength);
}
/**
* Returns the length of the whole object (including the identifier and length octets).
*/
public function getObjectLength()
{
$nrOfIdentifierOctets = strlen($this->getIdentifier());
$contentLength = $this->getContentLength();
$nrOfLengthOctets = $this->getNumberOfLengthOctets($contentLength);
return $nrOfIdentifierOctets + $nrOfLengthOctets + $contentLength;
}
public function __toString()
{
return $this->getContent();
}
/**
* Returns the name of the ASN.1 Type of this object.
*
* @see Identifier::getName()
*/
public function getTypeName()
{
return Identifier::getName($this->getType());
}
/**
* @param string $binaryData
* @param int $offsetIndex
*
* @throws ParserException
*
* @return \FG\ASN1\ASNObject
*/
public static function fromBinary(&$binaryData, &$offsetIndex = 0)
{
if (strlen($binaryData) <= $offsetIndex) {
throw new ParserException('Can not parse binary from data: Offset index larger than input size', $offsetIndex);
}
$identifierOctet = ord($binaryData[$offsetIndex]);
if (Identifier::isContextSpecificClass($identifierOctet) && Identifier::isConstructed($identifierOctet)) {
return ExplicitlyTaggedObject::fromBinary($binaryData, $offsetIndex);
}
switch ($identifierOctet) {
case Identifier::BITSTRING:
return BitString::fromBinary($binaryData, $offsetIndex);
case Identifier::BOOLEAN:
return Boolean::fromBinary($binaryData, $offsetIndex);
case Identifier::ENUMERATED:
return Enumerated::fromBinary($binaryData, $offsetIndex);
case Identifier::INTEGER:
return Integer::fromBinary($binaryData, $offsetIndex);
case Identifier::NULL:
return NullObject::fromBinary($binaryData, $offsetIndex);
case Identifier::OBJECT_IDENTIFIER:
return ObjectIdentifier::fromBinary($binaryData, $offsetIndex);
case Identifier::RELATIVE_OID:
return RelativeObjectIdentifier::fromBinary($binaryData, $offsetIndex);
case Identifier::OCTETSTRING:
return OctetString::fromBinary($binaryData, $offsetIndex);
case Identifier::SEQUENCE:
return Sequence::fromBinary($binaryData, $offsetIndex);
case Identifier::SET:
return Set::fromBinary($binaryData, $offsetIndex);
case Identifier::UTC_TIME:
return UTCTime::fromBinary($binaryData, $offsetIndex);
case Identifier::GENERALIZED_TIME:
return GeneralizedTime::fromBinary($binaryData, $offsetIndex);
case Identifier::IA5_STRING:
return IA5String::fromBinary($binaryData, $offsetIndex);
case Identifier::PRINTABLE_STRING:
return PrintableString::fromBinary($binaryData, $offsetIndex);
case Identifier::NUMERIC_STRING:
return NumericString::fromBinary($binaryData, $offsetIndex);
case Identifier::UTF8_STRING:
return UTF8String::fromBinary($binaryData, $offsetIndex);
case Identifier::UNIVERSAL_STRING:
return UniversalString::fromBinary($binaryData, $offsetIndex);
case Identifier::CHARACTER_STRING:
return CharacterString::fromBinary($binaryData, $offsetIndex);
case Identifier::GENERAL_STRING:
return GeneralString::fromBinary($binaryData, $offsetIndex);
case Identifier::VISIBLE_STRING:
return VisibleString::fromBinary($binaryData, $offsetIndex);
case Identifier::GRAPHIC_STRING:
return GraphicString::fromBinary($binaryData, $offsetIndex);
case Identifier::BMP_STRING:
return BMPString::fromBinary($binaryData, $offsetIndex);
case Identifier::T61_STRING:
return T61String::fromBinary($binaryData, $offsetIndex);
case Identifier::OBJECT_DESCRIPTOR:
return ObjectDescriptor::fromBinary($binaryData, $offsetIndex);
default:
// At this point the identifier may be >1 byte.
if (Identifier::isConstructed($identifierOctet)) {
return new UnknownConstructedObject($binaryData, $offsetIndex);
} else {
$identifier = self::parseBinaryIdentifier($binaryData, $offsetIndex);
$lengthOfUnknownObject = self::parseContentLength($binaryData, $offsetIndex);
$offsetIndex += $lengthOfUnknownObject;
return new UnknownObject($identifier, $lengthOfUnknownObject);
}
}
}
protected static function parseIdentifier($identifierOctet, $expectedIdentifier, $offsetForExceptionHandling)
{
if (is_string($identifierOctet) || is_numeric($identifierOctet) == false) {
$identifierOctet = ord($identifierOctet);
}
if ($identifierOctet != $expectedIdentifier) {
$message = 'Can not create an '.Identifier::getName($expectedIdentifier).' from an '.Identifier::getName($identifierOctet);
throw new ParserException($message, $offsetForExceptionHandling);
}
}
protected static function parseBinaryIdentifier($binaryData, &$offsetIndex)
{
if (strlen($binaryData) <= $offsetIndex) {
throw new ParserException('Can not parse identifier from data: Offset index larger than input size', $offsetIndex);
}
$identifier = $binaryData[$offsetIndex++];
if (Identifier::isLongForm(ord($identifier)) == false) {
return $identifier;
}
while (true) {
if (strlen($binaryData) <= $offsetIndex) {
throw new ParserException('Can not parse identifier (long form) from data: Offset index larger than input size', $offsetIndex);
}
$nextOctet = $binaryData[$offsetIndex++];
$identifier .= $nextOctet;
if ((ord($nextOctet) & 0x80) === 0) {
// the most significant bit is 0 to we have reached the end of the identifier
break;
}
}
return $identifier;
}
protected static function parseContentLength(&$binaryData, &$offsetIndex, $minimumLength = 0)
{
if (strlen($binaryData) <= $offsetIndex) {
throw new ParserException('Can not parse content length from data: Offset index larger than input size', $offsetIndex);
}
$contentLength = ord($binaryData[$offsetIndex++]);
if (($contentLength & 0x80) != 0) {
// bit 8 is set -> this is the long form
$nrOfLengthOctets = $contentLength & 0x7F;
$contentLength = BigInteger::create(0x00);
for ($i = 0; $i < $nrOfLengthOctets; $i++) {
if (strlen($binaryData) <= $offsetIndex) {
throw new ParserException('Can not parse content length (long form) from data: Offset index larger than input size', $offsetIndex);
}
$contentLength = $contentLength->shiftLeft(8)->add(ord($binaryData[$offsetIndex++]));
}
if ($contentLength->compare(PHP_INT_MAX) > 0) {
throw new ParserException("Can not parse content length from data: length > maximum integer", $offsetIndex);
}
$contentLength = $contentLength->toInteger();
}
if ($contentLength < $minimumLength) {
throw new ParserException('A '.get_called_class()." should have a content length of at least {$minimumLength}. Extracted length was {$contentLength}", $offsetIndex);
}
$lenDataRemaining = strlen($binaryData) - $offsetIndex;
if ($lenDataRemaining < $contentLength) {
throw new ParserException("Content length {$contentLength} exceeds remaining data length {$lenDataRemaining}", $offsetIndex);
}
return $contentLength;
}
}

View File

@@ -0,0 +1,136 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1;
use Exception;
abstract class AbstractString extends ASNObject implements Parsable
{
/** @var string */
protected $value;
private $checkStringForIllegalChars = true;
private $allowedCharacters = [];
/**
* The abstract base class for ASN.1 classes which represent some string of character.
*
* @param string $string
*/
public function __construct($string)
{
$this->value = $string;
}
public function getContent()
{
return $this->value;
}
protected function allowCharacter($character)
{
$this->allowedCharacters[] = $character;
}
protected function allowCharacters(...$characters)
{
foreach ($characters as $character) {
$this->allowedCharacters[] = $character;
}
}
protected function allowNumbers()
{
foreach (range('0', '9') as $char) {
$this->allowedCharacters[] = (string) $char;
}
}
protected function allowAllLetters()
{
$this->allowSmallLetters();
$this->allowCapitalLetters();
}
protected function allowSmallLetters()
{
foreach (range('a', 'z') as $char) {
$this->allowedCharacters[] = $char;
}
}
protected function allowCapitalLetters()
{
foreach (range('A', 'Z') as $char) {
$this->allowedCharacters[] = $char;
}
}
protected function allowSpaces()
{
$this->allowedCharacters[] = ' ';
}
protected function allowAll()
{
$this->checkStringForIllegalChars = false;
}
protected function calculateContentLength()
{
return strlen($this->value);
}
protected function getEncodedValue()
{
if ($this->checkStringForIllegalChars) {
$this->checkString();
}
return $this->value;
}
protected function checkString()
{
$stringLength = $this->getContentLength();
for ($i = 0; $i < $stringLength; $i++) {
if (in_array($this->value[$i], $this->allowedCharacters) == false) {
$typeName = Identifier::getName($this->getType());
throw new Exception("Could not create a {$typeName} from the character sequence '{$this->value}'.");
}
}
}
public static function fromBinary(&$binaryData, &$offsetIndex = 0)
{
$parsedObject = new static('');
self::parseIdentifier($binaryData[$offsetIndex], $parsedObject->getType(), $offsetIndex++);
$contentLength = self::parseContentLength($binaryData, $offsetIndex);
$string = substr($binaryData, $offsetIndex, $contentLength);
$offsetIndex += $contentLength;
$parsedObject->value = $string;
$parsedObject->setContentLength($contentLength);
return $parsedObject;
}
public static function isValid($string)
{
$testObject = new static($string);
try {
$testObject->checkString();
return true;
} catch (Exception $exception) {
return false;
}
}
}

View File

@@ -0,0 +1,78 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1;
use DateInterval;
use DateTime;
use DateTimeZone;
use Exception;
abstract class AbstractTime extends ASNObject
{
/** @var DateTime */
protected $value;
public function __construct($dateTime = null, $dateTimeZone = 'UTC')
{
if ($dateTime == null || is_string($dateTime)) {
$timeZone = new DateTimeZone($dateTimeZone);
$dateTimeObject = new DateTime($dateTime, $timeZone);
if ($dateTimeObject == false) {
$errorMessage = $this->getLastDateTimeErrors();
$className = Identifier::getName($this->getType());
throw new Exception(sprintf("Could not create %s from date time string '%s': %s", $className, $dateTime, $errorMessage));
}
$dateTime = $dateTimeObject;
} elseif (!$dateTime instanceof DateTime) {
throw new Exception('Invalid first argument for some instance of AbstractTime constructor');
}
$this->value = $dateTime;
}
public function getContent()
{
return $this->value;
}
protected function getLastDateTimeErrors()
{
$messages = '';
$lastErrors = DateTime::getLastErrors();
foreach ($lastErrors['errors'] as $errorMessage) {
$messages .= "{$errorMessage}, ";
}
return substr($messages, 0, -2);
}
public function __toString()
{
return $this->value->format("Y-m-d\tH:i:s");
}
protected static function extractTimeZoneData(&$binaryData, &$offsetIndex, DateTime $dateTime)
{
$sign = $binaryData[$offsetIndex++];
$timeOffsetHours = intval(substr($binaryData, $offsetIndex, 2));
$timeOffsetMinutes = intval(substr($binaryData, $offsetIndex + 2, 2));
$offsetIndex += 4;
$interval = new DateInterval("PT{$timeOffsetHours}H{$timeOffsetMinutes}M");
if ($sign == '+') {
$dateTime->sub($interval);
} else {
$dateTime->add($interval);
}
return $dateTime;
}
}

View File

@@ -0,0 +1,63 @@
<?php
namespace FG\ASN1;
use FG\Utility\BigInteger;
use InvalidArgumentException;
/**
* A base-128 decoder.
*/
class Base128
{
/**
* @param int $value
*
* @return string
*/
public static function encode($value)
{
$value = BigInteger::create($value);
$octets = chr($value->modulus(0x80)->toInteger());
$value = $value->shiftRight(7);
while ($value->compare(0) > 0) {
$octets .= chr(0x80 | $value->modulus(0x80)->toInteger());
$value = $value->shiftRight(7);
}
return strrev($octets);
}
/**
* @param string $octets
*
* @throws InvalidArgumentException if the given octets represent a malformed base-128 value or the decoded value would exceed the the maximum integer length
*
* @return int
*/
public static function decode($octets)
{
$bitsPerOctet = 7;
$value = BigInteger::create(0);
$i = 0;
while (true) {
if (!isset($octets[$i])) {
throw new InvalidArgumentException(sprintf('Malformed base-128 encoded value (0x%s).', strtoupper(bin2hex($octets)) ?: '0'));
}
$octet = ord($octets[$i++]);
$l1 = $value->shiftLeft($bitsPerOctet);
$r1 = $octet & 0x7f;
$value = $l1->add($r1);
if (0 === ($octet & 0x80)) {
break;
}
}
return (string)$value;
}
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1\Composite;
use FG\ASN1\ASNObject;
use FG\ASN1\Universal\Sequence;
use FG\ASN1\Universal\ObjectIdentifier;
class AttributeTypeAndValue extends Sequence
{
/**
* @param ObjectIdentifier|string $objIdentifier
* @param \FG\ASN1\ASNObject $value
*/
public function __construct($objIdentifier, ASNObject $value)
{
if ($objIdentifier instanceof ObjectIdentifier == false) {
$objIdentifier = new ObjectIdentifier($objIdentifier);
}
parent::__construct($objIdentifier, $value);
}
public function __toString()
{
return $this->children[0].': '.$this->children[1];
}
}

View File

@@ -0,0 +1,37 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1\Composite;
use FG\ASN1\Universal\PrintableString;
use FG\ASN1\Universal\IA5String;
use FG\ASN1\Universal\UTF8String;
class RDNString extends RelativeDistinguishedName
{
/**
* @param string|\FG\ASN1\Universal\ObjectIdentifier $objectIdentifierString
* @param string|\FG\ASN1\ASNObject $value
*/
public function __construct($objectIdentifierString, $value)
{
if (PrintableString::isValid($value)) {
$value = new PrintableString($value);
} else {
if (IA5String::isValid($value)) {
$value = new IA5String($value);
} else {
$value = new UTF8String($value);
}
}
parent::__construct($objectIdentifierString, $value);
}
}

View File

@@ -0,0 +1,50 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1\Composite;
use FG\ASN1\Exception\NotImplementedException;
use FG\ASN1\ASNObject;
use FG\ASN1\Universal\Set;
class RelativeDistinguishedName extends Set
{
/**
* @param string|\FG\ASN1\Universal\ObjectIdentifier $objIdentifierString
* @param \FG\ASN1\ASNObject $value
*/
public function __construct($objIdentifierString, ASNObject $value)
{
// TODO: This does only support one element in the RelativeDistinguishedName Set but it it is defined as follows:
// RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue
parent::__construct(new AttributeTypeAndValue($objIdentifierString, $value));
}
public function getContent()
{
/** @var \FG\ASN1\ASNObject $firstObject */
$firstObject = $this->children[0];
return $firstObject->__toString();
}
/**
* At the current version this code can not work since the implementation of Construct requires
* the class to support a constructor without arguments.
*
* @deprecated this function is not yet implemented! Feel free to submit a pull request on github
* @param string $binaryData
* @param int $offsetIndex
* @throws NotImplementedException
*/
public static function fromBinary(&$binaryData, &$offsetIndex = 0)
{
throw new NotImplementedException();
}
}

View File

@@ -0,0 +1,191 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1;
use ArrayAccess;
use ArrayIterator;
use Countable;
use FG\ASN1\Exception\ParserException;
use Iterator;
abstract class Construct extends ASNObject implements Countable, ArrayAccess, Iterator, Parsable
{
/** @var \FG\ASN1\ASNObject[] */
protected $children;
private $iteratorPosition;
/**
* @param \FG\ASN1\ASNObject[] $children the variadic type hint is commented due to https://github.com/facebook/hhvm/issues/4858
*/
public function __construct(/* HH_FIXME[4858]: variadic + strict */ ...$children)
{
$this->children = $children;
$this->iteratorPosition = 0;
}
public function getContent()
{
return $this->children;
}
public function rewind()
{
$this->iteratorPosition = 0;
}
public function current()
{
return $this->children[$this->iteratorPosition];
}
public function key()
{
return $this->iteratorPosition;
}
public function next()
{
$this->iteratorPosition++;
}
public function valid()
{
return isset($this->children[$this->iteratorPosition]);
}
public function offsetExists($offset)
{
return array_key_exists($offset, $this->children);
}
public function offsetGet($offset)
{
return $this->children[$offset];
}
public function offsetSet($offset, $value)
{
if ($offset === null) {
$offset = count($this->children);
}
$this->children[$offset] = $value;
}
public function offsetUnset($offset)
{
unset($this->children[$offset]);
}
protected function calculateContentLength()
{
$length = 0;
foreach ($this->children as $component) {
$length += $component->getObjectLength();
}
return $length;
}
protected function getEncodedValue()
{
$result = '';
foreach ($this->children as $component) {
$result .= $component->getBinary();
}
return $result;
}
public function addChild(ASNObject $child)
{
$this->children[] = $child;
}
public function addChildren(array $children)
{
foreach ($children as $child) {
$this->addChild($child);
}
}
public function __toString()
{
$nrOfChildren = $this->getNumberOfChildren();
$childString = $nrOfChildren == 1 ? 'child' : 'children';
return "[{$nrOfChildren} {$childString}]";
}
public function getNumberOfChildren()
{
return count($this->children);
}
/**
* @return \FG\ASN1\ASNObject[]
*/
public function getChildren()
{
return $this->children;
}
/**
* @return \FG\ASN1\ASNObject
*/
public function getFirstChild()
{
return $this->children[0];
}
/**
* @param string $binaryData
* @param int $offsetIndex
*
* @throws Exception\ParserException
*
* @return Construct|static
*/
public static function fromBinary(&$binaryData, &$offsetIndex = 0)
{
$parsedObject = new static();
self::parseIdentifier($binaryData[$offsetIndex], $parsedObject->getType(), $offsetIndex++);
$contentLength = self::parseContentLength($binaryData, $offsetIndex);
$startIndex = $offsetIndex;
$children = [];
$octetsToRead = $contentLength;
while ($octetsToRead > 0) {
$newChild = ASNObject::fromBinary($binaryData, $offsetIndex);
$octetsToRead -= $newChild->getObjectLength();
$children[] = $newChild;
}
if ($octetsToRead !== 0) {
throw new ParserException("Sequence length incorrect", $startIndex);
}
$parsedObject->addChildren($children);
$parsedObject->setContentLength($contentLength);
return $parsedObject;
}
public function count($mode = COUNT_NORMAL)
{
return count($this->children, $mode);
}
public function getIterator()
{
return new ArrayIterator($this->children);
}
}

View File

@@ -0,0 +1,15 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1\Exception;
class NotImplementedException extends \Exception
{
}

View File

@@ -0,0 +1,29 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1\Exception;
class ParserException extends \Exception
{
private $errorMessage;
private $offset;
public function __construct($errorMessage, $offset)
{
$this->errorMessage = $errorMessage;
$this->offset = $offset;
parent::__construct("ASN.1 Parser Exception at offset {$this->offset}: {$this->errorMessage}");
}
public function getOffset()
{
return $this->offset;
}
}

View File

@@ -0,0 +1,131 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1;
use FG\ASN1\Exception\ParserException;
/**
* Class ExplicitlyTaggedObject decorate an inner object with an additional tag that gives information about
* its context specific meaning.
*
* Explanation taken from A Layman's Guide to a Subset of ASN.1, BER, and DER:
* >>> An RSA Laboratories Technical Note
* >>> Burton S. Kaliski Jr.
* >>> Revised November 1, 1993
*
* [...]
* Explicitly tagged types are derived from other types by adding an outer tag to the underlying type.
* In effect, explicitly tagged types are structured types consisting of one component, the underlying type.
* Explicit tagging is denoted by the ASN.1 keywords [class number] EXPLICIT (see Section 5.2).
* [...]
*
* @see http://luca.ntop.org/Teaching/Appunti/asn1.html
*/
class ExplicitlyTaggedObject extends ASNObject
{
/** @var \FG\ASN1\ASNObject[] */
private $decoratedObjects;
private $tag;
/**
* @param int $tag
* @param \FG\ASN1\ASNObject $objects,...
*/
public function __construct($tag, /* HH_FIXME[4858]: variadic + strict */ ...$objects)
{
$this->tag = $tag;
$this->decoratedObjects = $objects;
}
protected function calculateContentLength()
{
$length = 0;
foreach ($this->decoratedObjects as $object) {
$length += $object->getObjectLength();
}
return $length;
}
protected function getEncodedValue()
{
$encoded = '';
foreach ($this->decoratedObjects as $object) {
$encoded .= $object->getBinary();
}
return $encoded;
}
public function getContent()
{
return $this->decoratedObjects;
}
public function __toString()
{
switch ($length = count($this->decoratedObjects)) {
case 0:
return "Context specific empty object with tag [{$this->tag}]";
case 1:
$decoratedType = Identifier::getShortName($this->decoratedObjects[0]->getType());
return "Context specific $decoratedType with tag [{$this->tag}]";
default:
return "$length context specific objects with tag [{$this->tag}]";
}
}
public function getType()
{
return ord($this->getIdentifier());
}
public function getIdentifier()
{
$identifier = Identifier::create(Identifier::CLASS_CONTEXT_SPECIFIC, true, $this->tag);
return is_int($identifier) ? chr($identifier) : $identifier;
}
public function getTag()
{
return $this->tag;
}
public static function fromBinary(&$binaryData, &$offsetIndex = 0)
{
$identifier = self::parseBinaryIdentifier($binaryData, $offsetIndex);
$firstIdentifierOctet = ord($identifier);
assert(Identifier::isContextSpecificClass($firstIdentifierOctet), 'identifier octet should indicate context specific class');
assert(Identifier::isConstructed($firstIdentifierOctet), 'identifier octet should indicate constructed object');
$tag = Identifier::getTagNumber($identifier);
$totalContentLength = self::parseContentLength($binaryData, $offsetIndex);
$remainingContentLength = $totalContentLength;
$offsetIndexOfDecoratedObject = $offsetIndex;
$decoratedObjects = [];
while ($remainingContentLength > 0) {
$nextObject = ASNObject::fromBinary($binaryData, $offsetIndex);
$remainingContentLength -= $nextObject->getObjectLength();
$decoratedObjects[] = $nextObject;
}
if ($remainingContentLength != 0) {
throw new ParserException("Context-Specific explicitly tagged object [$tag] starting at offset $offsetIndexOfDecoratedObject specifies a length of $totalContentLength octets but $remainingContentLength remain after parsing the content", $offsetIndexOfDecoratedObject);
}
$parsedObject = new self($tag, ...$decoratedObjects);
$parsedObject->setContentLength($totalContentLength);
return $parsedObject;
}
}

View File

@@ -0,0 +1,339 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1;
use Exception;
/**
* The Identifier encodes the ASN.1 tag (class and number) of the type of a data value.
*
* Every identifier whose number is in the range 0 to 30 has the following structure:
*
* Bits: 8 7 6 5 4 3 2 1
* | Class | P/C | Tag number |
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* Bits 8 and 7 define the class of this type ( Universal, Application, Context-specific or Private).
* Bit 6 encoded whether this type is primitive or constructed
* The remaining bits 5 - 1 encode the tag number
*/
class Identifier
{
const CLASS_UNIVERSAL = 0x00;
const CLASS_APPLICATION = 0x01;
const CLASS_CONTEXT_SPECIFIC = 0x02;
const CLASS_PRIVATE = 0x03;
const EOC = 0x00; // unsupported for now
const BOOLEAN = 0x01;
const INTEGER = 0x02;
const BITSTRING = 0x03;
const OCTETSTRING = 0x04;
const NULL = 0x05;
const OBJECT_IDENTIFIER = 0x06;
const OBJECT_DESCRIPTOR = 0x07;
const EXTERNAL = 0x08; // unsupported for now
const REAL = 0x09; // unsupported for now
const ENUMERATED = 0x0A;
const EMBEDDED_PDV = 0x0B; // unsupported for now
const UTF8_STRING = 0x0C;
const RELATIVE_OID = 0x0D;
// value 0x0E and 0x0F are reserved for future use
const SEQUENCE = 0x30;
const SET = 0x31;
const NUMERIC_STRING = 0x12;
const PRINTABLE_STRING = 0x13;
const T61_STRING = 0x14; // sometimes referred to as TeletextString
const VIDEOTEXT_STRING = 0x15;
const IA5_STRING = 0x16;
const UTC_TIME = 0x17;
const GENERALIZED_TIME = 0x18;
const GRAPHIC_STRING = 0x19;
const VISIBLE_STRING = 0x1A;
const GENERAL_STRING = 0x1B;
const UNIVERSAL_STRING = 0x1C;
const CHARACTER_STRING = 0x1D; // Unrestricted character type
const BMP_STRING = 0x1E;
const LONG_FORM = 0x1F;
const IS_CONSTRUCTED = 0x20;
/**
* Creates an identifier. Short form identifiers are returned as integers
* for BC, long form identifiers will be returned as a string of octets.
*
* @param int $class
* @param bool $isConstructed
* @param int $tagNumber
*
* @throws Exception if the given arguments are invalid
*
* @return int|string
*/
public static function create($class, $isConstructed, $tagNumber)
{
if (!is_numeric($class) || $class < self::CLASS_UNIVERSAL || $class > self::CLASS_PRIVATE) {
throw new Exception(sprintf('Invalid class %d given', $class));
}
if (!is_bool($isConstructed)) {
throw new Exception("\$isConstructed must be a boolean value ($isConstructed given)");
}
$tagNumber = self::makeNumeric($tagNumber);
if ($tagNumber < 0) {
throw new Exception(sprintf('Invalid $tagNumber %d given. You can only use positive integers.', $tagNumber));
}
if ($tagNumber < self::LONG_FORM) {
return ($class << 6) | ($isConstructed << 5) | $tagNumber;
}
$firstOctet = ($class << 6) | ($isConstructed << 5) | self::LONG_FORM;
// Tag numbers formatted in long form are base-128 encoded. See X.609#8.1.2.4
return chr($firstOctet).Base128::encode($tagNumber);
}
public static function isConstructed($identifierOctet)
{
return ($identifierOctet & self::IS_CONSTRUCTED) === self::IS_CONSTRUCTED;
}
public static function isLongForm($identifierOctet)
{
return ($identifierOctet & self::LONG_FORM) === self::LONG_FORM;
}
/**
* Return the name of the mapped ASN.1 type with a preceding "ASN.1 ".
*
* Example: ASN.1 Octet String
*
* @see Identifier::getShortName()
*
* @param int|string $identifier
*
* @return string
*/
public static function getName($identifier)
{
$identifierOctet = self::makeNumeric($identifier);
$typeName = static::getShortName($identifier);
if (($identifierOctet & self::LONG_FORM) < self::LONG_FORM) {
$typeName = "ASN.1 {$typeName}";
}
return $typeName;
}
/**
* Return the short version of the type name.
*
* If the given identifier octet can be mapped to a known universal type this will
* return its name. Else Identifier::getClassDescription() is used to retrieve
* information about the identifier.
*
* @see Identifier::getName()
* @see Identifier::getClassDescription()
*
* @param int|string $identifier
*
* @return string
*/
public static function getShortName($identifier)
{
$identifierOctet = self::makeNumeric($identifier);
switch ($identifierOctet) {
case self::EOC:
return 'End-of-contents octet';
case self::BOOLEAN:
return 'Boolean';
case self::INTEGER:
return 'Integer';
case self::BITSTRING:
return 'Bit String';
case self::OCTETSTRING:
return 'Octet String';
case self::NULL:
return 'NULL';
case self::OBJECT_IDENTIFIER:
return 'Object Identifier';
case self::OBJECT_DESCRIPTOR:
return 'Object Descriptor';
case self::EXTERNAL:
return 'External Type';
case self::REAL:
return 'Real';
case self::ENUMERATED:
return 'Enumerated';
case self::EMBEDDED_PDV:
return 'Embedded PDV';
case self::UTF8_STRING:
return 'UTF8 String';
case self::RELATIVE_OID:
return 'Relative OID';
case self::SEQUENCE:
return 'Sequence';
case self::SET:
return 'Set';
case self::NUMERIC_STRING:
return 'Numeric String';
case self::PRINTABLE_STRING:
return 'Printable String';
case self::T61_STRING:
return 'T61 String';
case self::VIDEOTEXT_STRING:
return 'Videotext String';
case self::IA5_STRING:
return 'IA5 String';
case self::UTC_TIME:
return 'UTC Time';
case self::GENERALIZED_TIME:
return 'Generalized Time';
case self::GRAPHIC_STRING:
return 'Graphic String';
case self::VISIBLE_STRING:
return 'Visible String';
case self::GENERAL_STRING:
return 'General String';
case self::UNIVERSAL_STRING:
return 'Universal String';
case self::CHARACTER_STRING:
return 'Character String';
case self::BMP_STRING:
return 'BMP String';
case 0x0E:
return 'RESERVED (0x0E)';
case 0x0F:
return 'RESERVED (0x0F)';
case self::LONG_FORM:
default:
$classDescription = self::getClassDescription($identifier);
if (is_int($identifier)) {
$identifier = chr($identifier);
}
return "$classDescription (0x".strtoupper(bin2hex($identifier)).')';
}
}
/**
* Returns a textual description of the information encoded in a given identifier octet.
*
* The first three (most significant) bytes are evaluated to determine if this is a
* constructed or primitive type and if it is either universal, application, context-specific or
* private.
*
* Example:
* Constructed context-specific
* Primitive universal
*
* @param int|string $identifier
*
* @return string
*/
public static function getClassDescription($identifier)
{
$identifierOctet = self::makeNumeric($identifier);
if (self::isConstructed($identifierOctet)) {
$classDescription = 'Constructed ';
} else {
$classDescription = 'Primitive ';
}
$classBits = $identifierOctet >> 6;
switch ($classBits) {
case self::CLASS_UNIVERSAL:
$classDescription .= 'universal';
break;
case self::CLASS_APPLICATION:
$classDescription .= 'application';
break;
case self::CLASS_CONTEXT_SPECIFIC:
$tagNumber = self::getTagNumber($identifier);
$classDescription = "[$tagNumber] Context-specific";
break;
case self::CLASS_PRIVATE:
$classDescription .= 'private';
break;
default:
return "INVALID IDENTIFIER OCTET: {$identifierOctet}";
}
return $classDescription;
}
/**
* @param int|string $identifier
*
* @return int
*/
public static function getTagNumber($identifier)
{
$firstOctet = self::makeNumeric($identifier);
$tagNumber = $firstOctet & self::LONG_FORM;
if ($tagNumber < self::LONG_FORM) {
return $tagNumber;
}
if (is_numeric($identifier)) {
$identifier = chr($identifier);
}
return Base128::decode(substr($identifier, 1));
}
public static function isUniversalClass($identifier)
{
$identifier = self::makeNumeric($identifier);
return $identifier >> 6 == self::CLASS_UNIVERSAL;
}
public static function isApplicationClass($identifier)
{
$identifier = self::makeNumeric($identifier);
return $identifier >> 6 == self::CLASS_APPLICATION;
}
public static function isContextSpecificClass($identifier)
{
$identifier = self::makeNumeric($identifier);
return $identifier >> 6 == self::CLASS_CONTEXT_SPECIFIC;
}
public static function isPrivateClass($identifier)
{
$identifier = self::makeNumeric($identifier);
return $identifier >> 6 == self::CLASS_PRIVATE;
}
private static function makeNumeric($identifierOctet)
{
if (!is_numeric($identifierOctet)) {
return ord($identifierOctet);
} else {
return $identifierOctet;
}
}
}

198
vendor/fgrosse/phpasn1/lib/ASN1/OID.php vendored Normal file
View File

@@ -0,0 +1,198 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1;
class OID
{
const RSA_ENCRYPTION = '1.2.840.113549.1.1.1';
const MD5_WITH_RSA_ENCRYPTION = '1.2.840.113549.1.1.4';
const SHA1_WITH_RSA_SIGNATURE = '1.2.840.113549.1.1.5';
const PKCS9_EMAIL = '1.2.840.113549.1.9.1';
const PKCS9_UNSTRUCTURED_NAME = '1.2.840.113549.1.9.2';
const PKCS9_CONTENT_TYPE = '1.2.840.113549.1.9.3';
const PKCS9_MESSAGE_DIGEST = '1.2.840.113549.1.9.4';
const PKCS9_SIGNING_TIME = '1.2.840.113549.1.9.5';
const PKCS9_EXTENSION_REQUEST = '1.2.840.113549.1.9.14';
// certificate extension identifier
const CERT_EXT_SUBJECT_DIRECTORY_ATTR = '2.5.29.9';
const CERT_EXT_SUBJECT_KEY_IDENTIFIER = '2.5.29.14';
const CERT_EXT_KEY_USAGE = '2.5.29.15';
const CERT_EXT_PRIVATE_KEY_USAGE_PERIOD = '2.5.29.16';
const CERT_EXT_SUBJECT_ALT_NAME = '2.5.29.17';
const CERT_EXT_ISSUER_ALT_NAME = '2.5.29.18';
const CERT_EXT_BASIC_CONSTRAINTS = '2.5.29.19';
const CERT_EXT_CRL_NUMBER = '2.5.29.20';
const CERT_EXT_REASON_CODE = '2.5.29.21';
const CERT_EXT_INVALIDITY_DATE = '2.5.29.24';
const CERT_EXT_DELTA_CRL_INDICATOR = '2.5.29.27';
const CERT_EXT_ISSUING_DIST_POINT = '2.5.29.28';
const CERT_EXT_CERT_ISSUER = '2.5.29.29';
const CERT_EXT_NAME_CONSTRAINTS = '2.5.29.30';
const CERT_EXT_CRL_DISTRIBUTION_POINTS = '2.5.29.31';
const CERT_EXT_CERT_POLICIES = '2.5.29.32';
const CERT_EXT_AUTHORITY_KEY_IDENTIFIER = '2.5.29.35';
const CERT_EXT_EXTENDED_KEY_USAGE = '2.5.29.37';
// standard certificate files
const COMMON_NAME = '2.5.4.3';
const SURNAME = '2.5.4.4';
const SERIAL_NUMBER = '2.5.4.5';
const COUNTRY_NAME = '2.5.4.6';
const LOCALITY_NAME = '2.5.4.7';
const STATE_OR_PROVINCE_NAME = '2.5.4.8';
const STREET_ADDRESS = '2.5.4.9';
const ORGANIZATION_NAME = '2.5.4.10';
const OU_NAME = '2.5.4.11';
const TITLE = '2.5.4.12';
const DESCRIPTION = '2.5.4.13';
const POSTAL_ADDRESS = '2.5.4.16';
const POSTAL_CODE = '2.5.4.17';
const AUTHORITY_REVOCATION_LIST = '2.5.4.38';
const AUTHORITY_INFORMATION_ACCESS = '1.3.6.1.5.5.7.1.1';
/**
* Returns the name of the given object identifier.
*
* Some OIDs are saved as class constants in this class.
* If the wanted oidString is not among them, this method will
* query http://oid-info.com for the right name.
* This behavior can be suppressed by setting the second method parameter to false.
*
* @param string $oidString
* @param bool $loadFromWeb
*
* @see self::loadFromWeb($oidString)
*
* @return string
*/
public static function getName($oidString, $loadFromWeb = true)
{
switch ($oidString) {
case self::RSA_ENCRYPTION:
return 'RSA Encryption';
case self::MD5_WITH_RSA_ENCRYPTION:
return 'MD5 with RSA Encryption';
case self::SHA1_WITH_RSA_SIGNATURE:
return 'SHA-1 with RSA Signature';
case self::PKCS9_EMAIL:
return 'PKCS #9 Email Address';
case self::PKCS9_UNSTRUCTURED_NAME:
return 'PKCS #9 Unstructured Name';
case self::PKCS9_CONTENT_TYPE:
return 'PKCS #9 Content Type';
case self::PKCS9_MESSAGE_DIGEST:
return 'PKCS #9 Message Digest';
case self::PKCS9_SIGNING_TIME:
return 'PKCS #9 Signing Time';
case self::COMMON_NAME:
return 'Common Name';
case self::SURNAME:
return 'Surname';
case self::SERIAL_NUMBER:
return 'Serial Number';
case self::COUNTRY_NAME:
return 'Country Name';
case self::LOCALITY_NAME:
return 'Locality Name';
case self::STATE_OR_PROVINCE_NAME:
return 'State or Province Name';
case self::STREET_ADDRESS:
return 'Street Address';
case self::ORGANIZATION_NAME:
return 'Organization Name';
case self::OU_NAME:
return 'Organization Unit Name';
case self::TITLE:
return 'Title';
case self::DESCRIPTION:
return 'Description';
case self::POSTAL_ADDRESS:
return 'Postal Address';
case self::POSTAL_CODE:
return 'Postal Code';
case self::AUTHORITY_REVOCATION_LIST:
return 'Authority Revocation List';
case self::CERT_EXT_SUBJECT_DIRECTORY_ATTR:
return 'Subject directory attributes';
case self::CERT_EXT_SUBJECT_KEY_IDENTIFIER:
return 'Subject key identifier';
case self::CERT_EXT_KEY_USAGE:
return 'Key usage certificate extension';
case self::CERT_EXT_PRIVATE_KEY_USAGE_PERIOD:
return 'Private key usage';
case self::CERT_EXT_SUBJECT_ALT_NAME:
return 'Subject alternative name (SAN)';
case self::CERT_EXT_ISSUER_ALT_NAME:
return 'Issuer alternative name';
case self::CERT_EXT_BASIC_CONSTRAINTS:
return 'Basic constraints';
case self::CERT_EXT_CRL_NUMBER:
return 'CRL number';
case self::CERT_EXT_REASON_CODE:
return 'Reason code';
case self::CERT_EXT_INVALIDITY_DATE:
return 'Invalidity code';
case self::CERT_EXT_DELTA_CRL_INDICATOR:
return 'Delta CRL indicator';
case self::CERT_EXT_ISSUING_DIST_POINT:
return 'Issuing distribution point';
case self::CERT_EXT_CERT_ISSUER:
return 'Certificate issuer';
case self::CERT_EXT_NAME_CONSTRAINTS:
return 'Name constraints';
case self::CERT_EXT_CRL_DISTRIBUTION_POINTS:
return 'CRL distribution points';
case self::CERT_EXT_CERT_POLICIES:
return 'Certificate policies ';
case self::CERT_EXT_AUTHORITY_KEY_IDENTIFIER:
return 'Authority key identifier';
case self::CERT_EXT_EXTENDED_KEY_USAGE:
return 'Extended key usage';
case self::AUTHORITY_INFORMATION_ACCESS:
return 'Certificate Authority Information Access (AIA)';
default:
if ($loadFromWeb) {
return self::loadFromWeb($oidString);
} else {
return $oidString;
}
}
}
public static function loadFromWeb($oidString)
{
$ch = curl_init("http://oid-info.com/get/{$oidString}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$contents = curl_exec($ch);
curl_close($ch);
// This pattern needs to be updated as soon as the website layout of oid-info.com changes
preg_match_all('#<tt>(.+)\(\d+\)</tt>#si', $contents, $oidName);
if (empty($oidName[1])) {
return "{$oidString} (unknown)";
}
$oidName = ucfirst(strtolower(preg_replace('/([A-Z][a-z])/', ' $1', $oidName[1][0])));
$oidName = str_replace('-', ' ', $oidName);
return "{$oidName} ({$oidString})";
}
}

View File

@@ -0,0 +1,32 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1;
use FG\ASN1\Exception\ParserException;
/**
* The Parsable interface describes classes that can be parsed from their binary DER representation.
*/
interface Parsable
{
/**
* Parse an instance of this class from its binary DER encoded representation.
*
* @param string $binaryData
* @param int $offsetIndex the offset at which parsing of the $binaryData is started. This parameter ill be modified
* to contain the offset index of the next object after this object has been parsed
*
* @throws ParserException if the given binary data is either invalid or not currently supported
*
* @return static
*/
public static function fromBinary(&$binaryData, &$offsetIndex = null);
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1;
use Exception;
use FG\ASN1\Exception\ParserException;
use FG\ASN1\Universal\Sequence;
class TemplateParser
{
/**
* @param string $data
* @param array $template
* @return \FG\ASN1\ASNObject|Sequence
* @throws ParserException if there was an issue parsing
*/
public function parseBase64($data, array $template)
{
// TODO test with invalid data
return $this->parseBinary(base64_decode($data), $template);
}
/**
* @param string $binary
* @param array $template
* @return \FG\ASN1\ASNObject|Sequence
* @throws ParserException if there was an issue parsing
*/
public function parseBinary($binary, array $template)
{
$parsedObject = ASNObject::fromBinary($binary);
foreach ($template as $key => $value) {
$this->validate($parsedObject, $key, $value);
}
return $parsedObject;
}
private function validate(ASNObject $object, $key, $value)
{
if (is_array($value)) {
$this->assertTypeId($key, $object);
/* @var Construct $object */
foreach ($value as $key => $child) {
$this->validate($object->current(), $key, $child);
$object->next();
}
} else {
$this->assertTypeId($value, $object);
}
}
private function assertTypeId($expectedTypeId, ASNObject $object)
{
$actualType = $object->getType();
if ($expectedTypeId != $actualType) {
throw new Exception("Expected type ($expectedTypeId) does not match actual type ($actualType");
}
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1\Universal;
use FG\ASN1\AbstractString;
use FG\ASN1\Identifier;
class BMPString extends AbstractString
{
/**
* Creates a new ASN.1 BMP String.
*
* BMPString is a subtype of UniversalString that has its own
* unique tag and contains only the characters in the
* Basic Multilingual Plane (those corresponding to the first
* 64K-2 cells, less cells whose encoding is used to address
* characters outside the Basic Multilingual Plane) of ISO/IEC 10646-1.
*
* TODO The encodable characters of this type are not yet checked.
*
* @param string $string
*/
public function __construct($string)
{
$this->value = $string;
$this->allowAll();
}
public function getType()
{
return Identifier::BMP_STRING;
}
}

View File

@@ -0,0 +1,88 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1\Universal;
use Exception;
use FG\ASN1\Exception\ParserException;
use FG\ASN1\Parsable;
use FG\ASN1\Identifier;
class BitString extends OctetString implements Parsable
{
private $nrOfUnusedBits;
/**
* Creates a new ASN.1 BitString object.
*
* @param string|int $value Either the hexadecimal value as a string (spaces are allowed - leading 0x is optional) or a numeric value
* @param int $nrOfUnusedBits the number of unused bits in the last octet [optional].
*
* @throws Exception if the second parameter is no positive numeric value
*/
public function __construct($value, $nrOfUnusedBits = 0)
{
parent::__construct($value);
if (!is_numeric($nrOfUnusedBits) || $nrOfUnusedBits < 0) {
throw new Exception('BitString: second parameter needs to be a positive number (or zero)!');
}
$this->nrOfUnusedBits = $nrOfUnusedBits;
}
public function getType()
{
return Identifier::BITSTRING;
}
protected function calculateContentLength()
{
// add one to the length for the first octet which encodes the number of unused bits in the last octet
return parent::calculateContentLength() + 1;
}
protected function getEncodedValue()
{
// the first octet determines the number of unused bits
$nrOfUnusedBitsOctet = chr($this->nrOfUnusedBits);
$actualContent = parent::getEncodedValue();
return $nrOfUnusedBitsOctet.$actualContent;
}
public function getNumberOfUnusedBits()
{
return $this->nrOfUnusedBits;
}
public static function fromBinary(&$binaryData, &$offsetIndex = 0)
{
self::parseIdentifier($binaryData[$offsetIndex], Identifier::BITSTRING, $offsetIndex++);
$contentLength = self::parseContentLength($binaryData, $offsetIndex, 2);
$nrOfUnusedBits = ord($binaryData[$offsetIndex]);
$value = substr($binaryData, $offsetIndex + 1, $contentLength - 1);
if ($nrOfUnusedBits > 7 || // no less than 1 used, otherwise non-minimal
($contentLength - 1) == 1 && $nrOfUnusedBits > 0 || // content length only 1, no
(ord($value[strlen($value)-1])&((1<<$nrOfUnusedBits)-1)) != 0 // unused bits set
) {
throw new ParserException("Can not parse bit string with invalid padding", $offsetIndex);
}
$offsetIndex += $contentLength;
$parsedObject = new self(bin2hex($value), $nrOfUnusedBits);
$parsedObject->setContentLength($contentLength);
return $parsedObject;
}
}

View File

@@ -0,0 +1,75 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1\Universal;
use FG\ASN1\ASNObject;
use FG\ASN1\Parsable;
use FG\ASN1\Identifier;
use FG\ASN1\Exception\ParserException;
class Boolean extends ASNObject implements Parsable
{
private $value;
/**
* @param bool $value
*/
public function __construct($value)
{
$this->value = $value;
}
public function getType()
{
return Identifier::BOOLEAN;
}
protected function calculateContentLength()
{
return 1;
}
protected function getEncodedValue()
{
if ($this->value == false) {
return chr(0x00);
} else {
return chr(0xFF);
}
}
public function getContent()
{
if ($this->value == true) {
return 'TRUE';
} else {
return 'FALSE';
}
}
public static function fromBinary(&$binaryData, &$offsetIndex = 0)
{
self::parseIdentifier($binaryData[$offsetIndex], Identifier::BOOLEAN, $offsetIndex++);
$contentLength = self::parseContentLength($binaryData, $offsetIndex);
if ($contentLength != 1) {
throw new ParserException("An ASN.1 Boolean should not have a length other than one. Extracted length was {$contentLength}", $offsetIndex);
}
$value = ord($binaryData[$offsetIndex++]);
$booleanValue = $value == 0xFF ? true : false;
$parsedObject = new self($booleanValue);
$parsedObject->setContentLength($contentLength);
return $parsedObject;
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* This file is part of the PHPASN1 library.
*
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FG\ASN1\Universal;
use FG\ASN1\AbstractString;
use FG\ASN1\Identifier;
class CharacterString extends AbstractString
{
public function __construct($string)
{
$this->value = $string;
$this->allowAll();
}
public function getType()
{
return Identifier::CHARACTER_STRING;
}
}

Some files were not shown because too many files have changed in this diff Show More