composer-update-patch
This commit is contained in:
638
composer.lock
generated
638
composer.lock
generated
File diff suppressed because it is too large
Load Diff
2
vendor/aws/aws-sdk-php/src/Acm/AcmClient.php
vendored
2
vendor/aws/aws-sdk-php/src/Acm/AcmClient.php
vendored
@@ -14,6 +14,8 @@ use Aws\AwsClient;
|
|||||||
* @method \GuzzleHttp\Promise\Promise describeCertificateAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeCertificateAsync(array $args = [])
|
||||||
* @method \Aws\Result getCertificate(array $args = [])
|
* @method \Aws\Result getCertificate(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getCertificateAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getCertificateAsync(array $args = [])
|
||||||
|
* @method \Aws\Result importCertificate(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise importCertificateAsync(array $args = [])
|
||||||
* @method \Aws\Result listCertificates(array $args = [])
|
* @method \Aws\Result listCertificates(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listCertificatesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listCertificatesAsync(array $args = [])
|
||||||
* @method \Aws\Result listTagsForCertificate(array $args = [])
|
* @method \Aws\Result listTagsForCertificate(array $args = [])
|
||||||
|
35
vendor/aws/aws-sdk-php/src/Budgets/BudgetsClient.php
vendored
Normal file
35
vendor/aws/aws-sdk-php/src/Budgets/BudgetsClient.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
namespace Aws\Budgets;
|
||||||
|
|
||||||
|
use Aws\AwsClient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This client is used to interact with the **AWS Budgets** service.
|
||||||
|
* @method \Aws\Result createBudget(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createBudgetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createNotification(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createNotificationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createSubscriber(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createSubscriberAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteBudget(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteBudgetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteNotification(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteNotificationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteSubscriber(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteSubscriberAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeBudget(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeBudgetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeBudgets(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeBudgetsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeNotificationsForBudget(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeNotificationsForBudgetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeSubscribersForNotification(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeSubscribersForNotificationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateBudget(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateBudgetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateNotification(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateNotificationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateSubscriber(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateSubscriberAsync(array $args = [])
|
||||||
|
*/
|
||||||
|
class BudgetsClient extends AwsClient {}
|
9
vendor/aws/aws-sdk-php/src/Budgets/Exception/BudgetsException.php
vendored
Normal file
9
vendor/aws/aws-sdk-php/src/Budgets/Exception/BudgetsException.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
namespace Aws\Budgets\Exception;
|
||||||
|
|
||||||
|
use Aws\Exception\AwsException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an error interacting with the **AWS Budgets** service.
|
||||||
|
*/
|
||||||
|
class BudgetsException extends AwsException {}
|
@@ -42,6 +42,8 @@ use Aws\AwsClient;
|
|||||||
* @method \GuzzleHttp\Promise\Promise getTemplateSummaryAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getTemplateSummaryAsync(array $args = [])
|
||||||
* @method \Aws\Result listChangeSets(array $args = [])
|
* @method \Aws\Result listChangeSets(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listChangeSetsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listChangeSetsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listExports(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listExportsAsync(array $args = [])
|
||||||
* @method \Aws\Result listStackResources(array $args = [])
|
* @method \Aws\Result listStackResources(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listStackResourcesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listStackResourcesAsync(array $args = [])
|
||||||
* @method \Aws\Result listStacks(array $args = [])
|
* @method \Aws\Result listStacks(array $args = [])
|
||||||
|
@@ -50,16 +50,16 @@ use Aws\AwsClient;
|
|||||||
* @method \GuzzleHttp\Promise\Promise updateDistributionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateDistributionAsync(array $args = [])
|
||||||
* @method \Aws\Result updateStreamingDistribution(array $args = [])
|
* @method \Aws\Result updateStreamingDistribution(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateStreamingDistributionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateStreamingDistributionAsync(array $args = [])
|
||||||
* @method \Aws\Result createDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \Aws\Result createDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
* @method \GuzzleHttp\Promise\Promise createDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \GuzzleHttp\Promise\Promise createDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
* @method \Aws\Result createStreamingDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \Aws\Result createStreamingDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
* @method \GuzzleHttp\Promise\Promise createStreamingDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \GuzzleHttp\Promise\Promise createStreamingDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
* @method \Aws\Result listTagsForResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \Aws\Result listTagsForResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
* @method \Aws\Result tagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \Aws\Result tagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
* @method \Aws\Result untagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \Aws\Result untagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
|
||||||
*/
|
*/
|
||||||
class CloudFrontClient extends AwsClient
|
class CloudFrontClient extends AwsClient
|
||||||
{
|
{
|
||||||
|
@@ -10,6 +10,8 @@ use Aws\AwsClient;
|
|||||||
* @method \GuzzleHttp\Promise\Promise addCustomAttributesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise addCustomAttributesAsync(array $args = [])
|
||||||
* @method \Aws\Result adminConfirmSignUp(array $args = [])
|
* @method \Aws\Result adminConfirmSignUp(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise adminConfirmSignUpAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise adminConfirmSignUpAsync(array $args = [])
|
||||||
|
* @method \Aws\Result adminCreateUser(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise adminCreateUserAsync(array $args = [])
|
||||||
* @method \Aws\Result adminDeleteUser(array $args = [])
|
* @method \Aws\Result adminDeleteUser(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise adminDeleteUserAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise adminDeleteUserAsync(array $args = [])
|
||||||
* @method \Aws\Result adminDeleteUserAttributes(array $args = [])
|
* @method \Aws\Result adminDeleteUserAttributes(array $args = [])
|
||||||
|
@@ -179,7 +179,7 @@ class CredentialProvider
|
|||||||
* Defaults to using a simple file-based cache when none provided.
|
* Defaults to using a simple file-based cache when none provided.
|
||||||
*
|
*
|
||||||
* @param callable $provider Credentials provider function to wrap
|
* @param callable $provider Credentials provider function to wrap
|
||||||
* @param CacheInterface $cache (optional) Cache to store credentials
|
* @param CacheInterface $cache Cache to store credentials
|
||||||
* @param string|null $cacheKey (optional) Cache key to use
|
* @param string|null $cacheKey (optional) Cache key to use
|
||||||
*
|
*
|
||||||
* @return callable
|
* @return callable
|
||||||
|
28
vendor/aws/aws-sdk-php/src/Ec2/Ec2Client.php
vendored
28
vendor/aws/aws-sdk-php/src/Ec2/Ec2Client.php
vendored
@@ -417,18 +417,22 @@ use Aws\Api\ApiProvider;
|
|||||||
* @method \GuzzleHttp\Promise\Promise unassignPrivateIpAddressesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise unassignPrivateIpAddressesAsync(array $args = [])
|
||||||
* @method \Aws\Result unmonitorInstances(array $args = [])
|
* @method \Aws\Result unmonitorInstances(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise unmonitorInstancesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise unmonitorInstancesAsync(array $args = [])
|
||||||
* @method \Aws\Result describeHostReservationOfferings(array $args = []) (supported in versions 2016-04-01)
|
* @method \Aws\Result describeHostReservationOfferings(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \GuzzleHttp\Promise\Promise describeHostReservationOfferingsAsync(array $args = []) (supported in versions 2016-04-01)
|
* @method \GuzzleHttp\Promise\Promise describeHostReservationOfferingsAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \Aws\Result describeHostReservations(array $args = []) (supported in versions 2016-04-01)
|
* @method \Aws\Result describeHostReservations(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \GuzzleHttp\Promise\Promise describeHostReservationsAsync(array $args = []) (supported in versions 2016-04-01)
|
* @method \GuzzleHttp\Promise\Promise describeHostReservationsAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \Aws\Result describeIdentityIdFormat(array $args = []) (supported in versions 2016-04-01)
|
* @method \Aws\Result describeIdentityIdFormat(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \GuzzleHttp\Promise\Promise describeIdentityIdFormatAsync(array $args = []) (supported in versions 2016-04-01)
|
* @method \GuzzleHttp\Promise\Promise describeIdentityIdFormatAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \Aws\Result getHostReservationPurchasePreview(array $args = []) (supported in versions 2016-04-01)
|
* @method \Aws\Result getHostReservationPurchasePreview(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \GuzzleHttp\Promise\Promise getHostReservationPurchasePreviewAsync(array $args = []) (supported in versions 2016-04-01)
|
* @method \GuzzleHttp\Promise\Promise getHostReservationPurchasePreviewAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \Aws\Result modifyIdentityIdFormat(array $args = []) (supported in versions 2016-04-01)
|
* @method \Aws\Result modifyIdentityIdFormat(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \GuzzleHttp\Promise\Promise modifyIdentityIdFormatAsync(array $args = []) (supported in versions 2016-04-01)
|
* @method \GuzzleHttp\Promise\Promise modifyIdentityIdFormatAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \Aws\Result purchaseHostReservation(array $args = []) (supported in versions 2016-04-01)
|
* @method \Aws\Result purchaseHostReservation(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
* @method \GuzzleHttp\Promise\Promise purchaseHostReservationAsync(array $args = []) (supported in versions 2016-04-01)
|
* @method \GuzzleHttp\Promise\Promise purchaseHostReservationAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
|
||||||
|
* @method \Aws\Result acceptReservedInstancesExchangeQuote(array $args = []) (supported in versions 2016-09-15)
|
||||||
|
* @method \GuzzleHttp\Promise\Promise acceptReservedInstancesExchangeQuoteAsync(array $args = []) (supported in versions 2016-09-15)
|
||||||
|
* @method \Aws\Result getReservedInstancesExchangeQuote(array $args = []) (supported in versions 2016-09-15)
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getReservedInstancesExchangeQuoteAsync(array $args = []) (supported in versions 2016-09-15)
|
||||||
*/
|
*/
|
||||||
class Ec2Client extends AwsClient
|
class Ec2Client extends AwsClient
|
||||||
{
|
{
|
||||||
|
2
vendor/aws/aws-sdk-php/src/Ecr/EcrClient.php
vendored
2
vendor/aws/aws-sdk-php/src/Ecr/EcrClient.php
vendored
@@ -20,6 +20,8 @@ use Aws\AwsClient;
|
|||||||
* @method \GuzzleHttp\Promise\Promise deleteRepositoryAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteRepositoryAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteRepositoryPolicy(array $args = [])
|
* @method \Aws\Result deleteRepositoryPolicy(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteRepositoryPolicyAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteRepositoryPolicyAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeImages(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeImagesAsync(array $args = [])
|
||||||
* @method \Aws\Result describeRepositories(array $args = [])
|
* @method \Aws\Result describeRepositories(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeRepositoriesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeRepositoriesAsync(array $args = [])
|
||||||
* @method \Aws\Result getAuthorizationToken(array $args = [])
|
* @method \Aws\Result getAuthorizationToken(array $args = [])
|
||||||
|
8
vendor/aws/aws-sdk-php/src/Emr/EmrClient.php
vendored
8
vendor/aws/aws-sdk-php/src/Emr/EmrClient.php
vendored
@@ -12,10 +12,16 @@ use Aws\AwsClient;
|
|||||||
* @method \GuzzleHttp\Promise\Promise addJobFlowStepsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise addJobFlowStepsAsync(array $args = [])
|
||||||
* @method \Aws\Result addTags(array $args = [])
|
* @method \Aws\Result addTags(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise addTagsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise addTagsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createSecurityConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createSecurityConfigurationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteSecurityConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteSecurityConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result describeCluster(array $args = [])
|
* @method \Aws\Result describeCluster(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeClusterAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeClusterAsync(array $args = [])
|
||||||
* @method \Aws\Result describeJobFlows(array $args = [])
|
* @method \Aws\Result describeJobFlows(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeJobFlowsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeJobFlowsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeSecurityConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeSecurityConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result describeStep(array $args = [])
|
* @method \Aws\Result describeStep(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeStepAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeStepAsync(array $args = [])
|
||||||
* @method \Aws\Result listBootstrapActions(array $args = [])
|
* @method \Aws\Result listBootstrapActions(array $args = [])
|
||||||
@@ -26,6 +32,8 @@ use Aws\AwsClient;
|
|||||||
* @method \GuzzleHttp\Promise\Promise listInstanceGroupsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listInstanceGroupsAsync(array $args = [])
|
||||||
* @method \Aws\Result listInstances(array $args = [])
|
* @method \Aws\Result listInstances(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listInstancesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listInstancesAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listSecurityConfigurations(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listSecurityConfigurationsAsync(array $args = [])
|
||||||
* @method \Aws\Result listSteps(array $args = [])
|
* @method \Aws\Result listSteps(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listStepsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listStepsAsync(array $args = [])
|
||||||
* @method \Aws\Result modifyInstanceGroups(array $args = [])
|
* @method \Aws\Result modifyInstanceGroups(array $args = [])
|
||||||
|
@@ -46,6 +46,8 @@ use Aws\AwsClient;
|
|||||||
* @method \GuzzleHttp\Promise\Promise describeGameSessionDetailsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeGameSessionDetailsAsync(array $args = [])
|
||||||
* @method \Aws\Result describeGameSessions(array $args = [])
|
* @method \Aws\Result describeGameSessions(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeGameSessionsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeGameSessionsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeInstances(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeInstancesAsync(array $args = [])
|
||||||
* @method \Aws\Result describePlayerSessions(array $args = [])
|
* @method \Aws\Result describePlayerSessions(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describePlayerSessionsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describePlayerSessionsAsync(array $args = [])
|
||||||
* @method \Aws\Result describeRuntimeConfiguration(array $args = [])
|
* @method \Aws\Result describeRuntimeConfiguration(array $args = [])
|
||||||
|
4
vendor/aws/aws-sdk-php/src/Rds/RdsClient.php
vendored
4
vendor/aws/aws-sdk-php/src/Rds/RdsClient.php
vendored
@@ -6,6 +6,8 @@ use Aws\AwsClient;
|
|||||||
/**
|
/**
|
||||||
* This client is used to interact with the **Amazon Relational Database Service (Amazon RDS)**.
|
* This client is used to interact with the **Amazon Relational Database Service (Amazon RDS)**.
|
||||||
*
|
*
|
||||||
|
* @method \Aws\Result addRoleToDBCluster(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise addRoleToDBClusterAsync(array $args = [])
|
||||||
* @method \Aws\Result addSourceIdentifierToSubscription(array $args = [])
|
* @method \Aws\Result addSourceIdentifierToSubscription(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise addSourceIdentifierToSubscriptionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise addSourceIdentifierToSubscriptionAsync(array $args = [])
|
||||||
* @method \Aws\Result addTagsToResource(array $args = [])
|
* @method \Aws\Result addTagsToResource(array $args = [])
|
||||||
@@ -154,6 +156,8 @@ use Aws\AwsClient;
|
|||||||
* @method \GuzzleHttp\Promise\Promise purchaseReservedDBInstancesOfferingAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise purchaseReservedDBInstancesOfferingAsync(array $args = [])
|
||||||
* @method \Aws\Result rebootDBInstance(array $args = [])
|
* @method \Aws\Result rebootDBInstance(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise rebootDBInstanceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise rebootDBInstanceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result removeRoleFromDBCluster(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise removeRoleFromDBClusterAsync(array $args = [])
|
||||||
* @method \Aws\Result removeSourceIdentifierFromSubscription(array $args = [])
|
* @method \Aws\Result removeSourceIdentifierFromSubscription(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise removeSourceIdentifierFromSubscriptionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise removeSourceIdentifierFromSubscriptionAsync(array $args = [])
|
||||||
* @method \Aws\Result removeTagsFromResource(array $args = [])
|
* @method \Aws\Result removeTagsFromResource(array $args = [])
|
||||||
|
@@ -1,90 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace Aws\S3;
|
|
||||||
|
|
||||||
use Aws\CommandInterface;
|
|
||||||
use Psr\Http\Message\RequestInterface;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Used to update the URL used for S3 requests to suport S3 Accelerate.
|
|
||||||
*
|
|
||||||
* IMPORTANT: this middleware must be added after the "build" step.
|
|
||||||
*
|
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
class AccelerateMiddleware
|
|
||||||
{
|
|
||||||
private static $exclusions = [
|
|
||||||
'CreateBucket' => true,
|
|
||||||
'DeleteBucket' => true,
|
|
||||||
'ListBuckets' => true,
|
|
||||||
];
|
|
||||||
/** @var bool */
|
|
||||||
private $accelerateByDefault;
|
|
||||||
/** @var callable */
|
|
||||||
private $nextHandler;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a middleware wrapper function.
|
|
||||||
*
|
|
||||||
* @param bool $accelerateByDefault
|
|
||||||
*
|
|
||||||
* @return callable
|
|
||||||
*/
|
|
||||||
public static function wrap($accelerateByDefault = false)
|
|
||||||
{
|
|
||||||
return function (callable $handler) use ($accelerateByDefault) {
|
|
||||||
return new self($handler, $accelerateByDefault);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public function __construct(callable $nextHandler, $accelerateByDefault = false)
|
|
||||||
{
|
|
||||||
$this->accelerateByDefault = (bool) $accelerateByDefault;
|
|
||||||
$this->nextHandler = $nextHandler;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function __invoke(CommandInterface $command, RequestInterface $request)
|
|
||||||
{
|
|
||||||
if ($this->shouldAccelerate($command)) {
|
|
||||||
$request = $request->withUri(
|
|
||||||
$request->getUri()
|
|
||||||
->withHost($this->getAccelerateHost($command))
|
|
||||||
->withPath($this->getBucketlessPath(
|
|
||||||
$request->getUri()->getPath(),
|
|
||||||
$command
|
|
||||||
))
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$nextHandler = $this->nextHandler;
|
|
||||||
return $nextHandler($command, $request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function shouldAccelerate(CommandInterface $command)
|
|
||||||
{
|
|
||||||
if ($this->canAccelerate($command)) {
|
|
||||||
return isset($command['@use_accelerate_endpoint'])
|
|
||||||
? $command['@use_accelerate_endpoint']
|
|
||||||
: $this->accelerateByDefault;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private function canAccelerate(CommandInterface $command)
|
|
||||||
{
|
|
||||||
return empty(self::$exclusions[$command->getName()])
|
|
||||||
&& S3Client::isBucketDnsCompatible($command['Bucket']);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function getAccelerateHost(CommandInterface $command)
|
|
||||||
{
|
|
||||||
return "{$command['Bucket']}.s3-accelerate.amazonaws.com";
|
|
||||||
}
|
|
||||||
|
|
||||||
private function getBucketlessPath($path, CommandInterface $command)
|
|
||||||
{
|
|
||||||
$pattern = '/^\\/' . preg_quote($command['Bucket'], '/') . '/';
|
|
||||||
return preg_replace($pattern, '', $path) ?: '/';
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,67 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace Aws\S3;
|
|
||||||
|
|
||||||
use Aws\CommandInterface;
|
|
||||||
use Psr\Http\Message\RequestInterface;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Dual Stack Endpoints enables customers to access AWS services with IPv6
|
|
||||||
*
|
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
class DualStackMiddleware
|
|
||||||
{
|
|
||||||
/** @var bool */
|
|
||||||
private $dualStackByDefault;
|
|
||||||
/** @var string */
|
|
||||||
private $region;
|
|
||||||
/** @var callable */
|
|
||||||
private $nextHandler;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a middleware wrapper function
|
|
||||||
*
|
|
||||||
* @param string $region
|
|
||||||
* @param bool $dualStackByDefault
|
|
||||||
*
|
|
||||||
* @return callable
|
|
||||||
*/
|
|
||||||
public static function wrap($region, $dualStackByDefault = false)
|
|
||||||
{
|
|
||||||
return function (callable $handler) use ($dualStackByDefault, $region) {
|
|
||||||
return new self($handler, $region, $dualStackByDefault);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public function __construct(callable $nextHandler, $region, $dualStackByDefault = false)
|
|
||||||
{
|
|
||||||
$this->dualStackByDefault = (bool) $dualStackByDefault;
|
|
||||||
$this->region = (string) $region;
|
|
||||||
$this->nextHandler = $nextHandler;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function __invoke(CommandInterface $command, RequestInterface $request)
|
|
||||||
{
|
|
||||||
if ($this->shouldApplyDualStack($command)) {
|
|
||||||
$request = $request->withUri(
|
|
||||||
$request->getUri()
|
|
||||||
->withHost($this->getDualStackHost())
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$nextHandler = $this->nextHandler;
|
|
||||||
return $nextHandler($command, $request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function shouldApplyDualStack(CommandInterface $command)
|
|
||||||
{
|
|
||||||
return isset($command['@use_dual_stack_endpoint'])
|
|
||||||
? $command['@use_dual_stack_endpoint']
|
|
||||||
: $this->dualStackByDefault;
|
|
||||||
}
|
|
||||||
|
|
||||||
private function getDualStackHost()
|
|
||||||
{
|
|
||||||
return "s3.dualstack.{$this->region}.amazonaws.com";
|
|
||||||
}
|
|
||||||
}
|
|
11
vendor/aws/aws-sdk-php/src/S3/PostObjectV4.php
vendored
11
vendor/aws/aws-sdk-php/src/S3/PostObjectV4.php
vendored
@@ -4,7 +4,6 @@ namespace Aws\S3;
|
|||||||
use Aws\Credentials\CredentialsInterface;
|
use Aws\Credentials\CredentialsInterface;
|
||||||
use GuzzleHttp\Psr7\Uri;
|
use GuzzleHttp\Psr7\Uri;
|
||||||
use Aws\Signature\SignatureTrait;
|
use Aws\Signature\SignatureTrait;
|
||||||
use Aws\Common\Enum\DateFormat;
|
|
||||||
use Aws\Signature\SignatureV4 as SignatureV4;
|
use Aws\Signature\SignatureV4 as SignatureV4;
|
||||||
use Aws\Api\TimestampShape as TimestampShape;
|
use Aws\Api\TimestampShape as TimestampShape;
|
||||||
|
|
||||||
@@ -55,6 +54,14 @@ class PostObjectV4
|
|||||||
'enctype' => 'multipart/form-data'
|
'enctype' => 'multipart/form-data'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$credentials = $this->client->getCredentials()->wait();
|
||||||
|
$securityToken = $credentials->getSecurityToken();
|
||||||
|
|
||||||
|
if (null !== $securityToken) {
|
||||||
|
array_push($options, ['x-amz-security-token' => $securityToken]);
|
||||||
|
$formInputs['X-Amz-Security-Token'] = $securityToken;
|
||||||
|
}
|
||||||
|
|
||||||
// setup basic policy
|
// setup basic policy
|
||||||
$policy = [
|
$policy = [
|
||||||
'expiration' => TimestampShape::format($expiration, 'iso8601'),
|
'expiration' => TimestampShape::format($expiration, 'iso8601'),
|
||||||
@@ -65,7 +72,7 @@ class PostObjectV4
|
|||||||
$this->formInputs = $formInputs + ['key' => '${filename}'];
|
$this->formInputs = $formInputs + ['key' => '${filename}'];
|
||||||
|
|
||||||
// finalize policy and signature
|
// finalize policy and signature
|
||||||
$credentials = $this->client->getCredentials()->wait();
|
|
||||||
$this->formInputs += $this->getPolicyAndSignature(
|
$this->formInputs += $this->getPolicyAndSignature(
|
||||||
$credentials,
|
$credentials,
|
||||||
$policy
|
$policy
|
||||||
|
18
vendor/aws/aws-sdk-php/src/S3/S3Client.php
vendored
18
vendor/aws/aws-sdk-php/src/S3/S3Client.php
vendored
@@ -176,8 +176,7 @@ class S3Client extends AwsClient implements S3ClientInterface
|
|||||||
'doc' => 'Set to true to send requests to an S3 Dual Stack'
|
'doc' => 'Set to true to send requests to an S3 Dual Stack'
|
||||||
. ' endpoint by default, which enables IPv6 Protocol.'
|
. ' endpoint by default, which enables IPv6 Protocol.'
|
||||||
. ' Can be enabled or disabled on individual operations by setting'
|
. ' Can be enabled or disabled on individual operations by setting'
|
||||||
. ' \'@use_dual_stack_endpoint\' to true or false. Note:'
|
. ' \'@use_dual_stack_endpoint\' to true or false.',
|
||||||
. ' you cannot use it together with an accelerate endpoint.',
|
|
||||||
'default' => false,
|
'default' => false,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
@@ -219,17 +218,18 @@ class S3Client extends AwsClient implements S3ClientInterface
|
|||||||
Middleware::contentType(['PutObject', 'UploadPart']),
|
Middleware::contentType(['PutObject', 'UploadPart']),
|
||||||
's3.content_type'
|
's3.content_type'
|
||||||
);
|
);
|
||||||
|
|
||||||
$stack->appendBuild(
|
$stack->appendBuild(
|
||||||
AccelerateMiddleware::wrap($this->getConfig('use_accelerate_endpoint')),
|
S3EndpointMiddleware::wrap(
|
||||||
's3.use_accelerate_endpoint'
|
|
||||||
);
|
|
||||||
$stack->appendBuild(
|
|
||||||
DualStackMiddleware::wrap(
|
|
||||||
$this->getRegion(),
|
$this->getRegion(),
|
||||||
$this->getConfig('use_dual_stack_endpoint')
|
[
|
||||||
|
'dual_stack' => $this->getConfig('use_dual_stack_endpoint'),
|
||||||
|
'accelerate' => $this->getConfig('use_accelerate_endpoint')
|
||||||
|
]
|
||||||
),
|
),
|
||||||
's3.use_dual_stack_endpoint'
|
's3.endpoint_middleware'
|
||||||
);
|
);
|
||||||
|
|
||||||
// Use the bucket style middleware when using a "bucket_endpoint" (for cnames)
|
// Use the bucket style middleware when using a "bucket_endpoint" (for cnames)
|
||||||
if ($this->getConfig('bucket_endpoint')) {
|
if ($this->getConfig('bucket_endpoint')) {
|
||||||
$stack->appendBuild(BucketEndpointMiddleware::wrap(), 's3.bucket_endpoint');
|
$stack->appendBuild(BucketEndpointMiddleware::wrap(), 's3.bucket_endpoint');
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
namespace Aws\S3;
|
namespace Aws\S3;
|
||||||
|
|
||||||
use Aws\CommandInterface;
|
use Aws\CommandInterface;
|
||||||
|
use Aws\Exception\AwsException;
|
||||||
use Aws\HandlerList;
|
use Aws\HandlerList;
|
||||||
use Aws\ResultInterface;
|
use Aws\ResultInterface;
|
||||||
use Aws\S3\Exception\S3Exception;
|
use Aws\S3\Exception\S3Exception;
|
||||||
@@ -174,6 +175,12 @@ trait S3ClientTrait
|
|||||||
return $handler($command)
|
return $handler($command)
|
||||||
->then(static function (ResultInterface $result) {
|
->then(static function (ResultInterface $result) {
|
||||||
return $result['@metadata']['headers']['x-amz-bucket-region'];
|
return $result['@metadata']['headers']['x-amz-bucket-region'];
|
||||||
|
}, static function (AwsException $exception) {
|
||||||
|
$response = $exception->getResponse();
|
||||||
|
if ($response === null) {
|
||||||
|
throw $exception;
|
||||||
|
}
|
||||||
|
return $response->getHeaderLine('x-amz-bucket-region');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
161
vendor/aws/aws-sdk-php/src/S3/S3EndpointMiddleware.php
vendored
Normal file
161
vendor/aws/aws-sdk-php/src/S3/S3EndpointMiddleware.php
vendored
Normal file
@@ -0,0 +1,161 @@
|
|||||||
|
<?php
|
||||||
|
namespace Aws\S3;
|
||||||
|
|
||||||
|
use Aws\CommandInterface;
|
||||||
|
use Psr\Http\Message\RequestInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to update the URL used for S3 requests to support:
|
||||||
|
* S3 Accelerate, S3 DualStack or Both
|
||||||
|
*
|
||||||
|
* IMPORTANT: this middleware must be added after the "build" step.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
class S3EndpointMiddleware
|
||||||
|
{
|
||||||
|
private static $exclusions = [
|
||||||
|
'CreateBucket' => true,
|
||||||
|
'DeleteBucket' => true,
|
||||||
|
'ListBuckets' => true,
|
||||||
|
];
|
||||||
|
|
||||||
|
const NO_PATTERN = 0;
|
||||||
|
const DUALSTACK = 1;
|
||||||
|
const ACCELERATE = 2;
|
||||||
|
const ACCELERATE_DUALSTACK = 3;
|
||||||
|
|
||||||
|
/** @var bool */
|
||||||
|
private $accelerateByDefault;
|
||||||
|
/** @var bool */
|
||||||
|
private $dualStackByDefault;
|
||||||
|
/** @var string */
|
||||||
|
private $region;
|
||||||
|
/** @var callable */
|
||||||
|
private $nextHandler;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a middleware wrapper function
|
||||||
|
*
|
||||||
|
* @param string $region
|
||||||
|
* @param array $options
|
||||||
|
*
|
||||||
|
* @return callable
|
||||||
|
*/
|
||||||
|
public static function wrap($region, array $options)
|
||||||
|
{
|
||||||
|
return function (callable $handler) use ($region, $options) {
|
||||||
|
return new self($handler, $region, $options);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __construct(
|
||||||
|
callable $nextHandler,
|
||||||
|
$region,
|
||||||
|
array $options
|
||||||
|
) {
|
||||||
|
$this->dualStackByDefault = isset($options['dual_stack'])
|
||||||
|
? (bool) $options['dual_stack'] : false;
|
||||||
|
$this->accelerateByDefault = isset($options['accelerate'])
|
||||||
|
? (bool) $options['accelerate'] : false;
|
||||||
|
$this->region = (string) $region;
|
||||||
|
$this->nextHandler = $nextHandler;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __invoke(CommandInterface $command, RequestInterface $request)
|
||||||
|
{
|
||||||
|
$endpointPattern = $this->endpointPatternDecider($command);
|
||||||
|
switch ($endpointPattern) {
|
||||||
|
case self::NO_PATTERN:
|
||||||
|
break;
|
||||||
|
case self::DUALSTACK:
|
||||||
|
$request = $this->applyDualStackEndpoint($request);
|
||||||
|
break;
|
||||||
|
case self::ACCELERATE:
|
||||||
|
$request = $this->applyAccelerateEndpoint(
|
||||||
|
$command,
|
||||||
|
$request,
|
||||||
|
's3-accelerate'
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
case self::ACCELERATE_DUALSTACK:
|
||||||
|
$request = $this->applyAccelerateEndpoint(
|
||||||
|
$command,
|
||||||
|
$request,
|
||||||
|
's3-accelerate.dualstack'
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$nextHandler = $this->nextHandler;
|
||||||
|
return $nextHandler($command, $request);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function endpointPatternDecider(CommandInterface $command)
|
||||||
|
{
|
||||||
|
$accelerate = isset($command['@use_accelerate_endpoint'])
|
||||||
|
? $command['@use_accelerate_endpoint'] : $this->accelerateByDefault;
|
||||||
|
$dualStack = isset($command['@use_dual_stack_endpoint'])
|
||||||
|
? $command['@use_dual_stack_endpoint'] : $this->dualStackByDefault;
|
||||||
|
|
||||||
|
if ($accelerate && $dualStack) {
|
||||||
|
// When try to enable both for operations excluded from s3-accelerate,
|
||||||
|
// only dualstack endpoints will be enabled.
|
||||||
|
return $this->canAccelerate($command)
|
||||||
|
? self::ACCELERATE_DUALSTACK
|
||||||
|
: self::DUALSTACK;
|
||||||
|
} elseif ($accelerate && $this->canAccelerate($command)) {
|
||||||
|
return self::ACCELERATE;
|
||||||
|
} elseif ($dualStack) {
|
||||||
|
return self::DUALSTACK;
|
||||||
|
}
|
||||||
|
return self::NO_PATTERN;
|
||||||
|
}
|
||||||
|
|
||||||
|
private function canAccelerate(CommandInterface $command)
|
||||||
|
{
|
||||||
|
return empty(self::$exclusions[$command->getName()])
|
||||||
|
&& S3Client::isBucketDnsCompatible($command['Bucket']);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function applyDualStackEndpoint(RequestInterface $request)
|
||||||
|
{
|
||||||
|
$request = $request->withUri(
|
||||||
|
$request->getUri()
|
||||||
|
->withHost($this->getDualStackHost())
|
||||||
|
);
|
||||||
|
return $request;
|
||||||
|
}
|
||||||
|
|
||||||
|
private function getDualStackHost()
|
||||||
|
{
|
||||||
|
return "s3.dualstack.{$this->region}.amazonaws.com";
|
||||||
|
}
|
||||||
|
|
||||||
|
private function applyAccelerateEndpoint(
|
||||||
|
CommandInterface $command,
|
||||||
|
RequestInterface $request,
|
||||||
|
$pattern
|
||||||
|
) {
|
||||||
|
$request = $request->withUri(
|
||||||
|
$request->getUri()
|
||||||
|
->withHost($this->getAccelerateHost($command, $pattern))
|
||||||
|
->withPath($this->getBucketlessPath(
|
||||||
|
$request->getUri()->getPath(),
|
||||||
|
$command
|
||||||
|
))
|
||||||
|
);
|
||||||
|
return $request;
|
||||||
|
}
|
||||||
|
|
||||||
|
private function getAccelerateHost(CommandInterface $command, $pattern)
|
||||||
|
{
|
||||||
|
return "{$command['Bucket']}.{$pattern}.amazonaws.com";
|
||||||
|
}
|
||||||
|
|
||||||
|
private function getBucketlessPath($path, CommandInterface $command)
|
||||||
|
{
|
||||||
|
$pattern = '/^\\/' . preg_quote($command['Bucket'], '/') . '/';
|
||||||
|
return preg_replace($pattern, '', $path) ?: '/';
|
||||||
|
}
|
||||||
|
}
|
6
vendor/aws/aws-sdk-php/src/Sdk.php
vendored
6
vendor/aws/aws-sdk-php/src/Sdk.php
vendored
@@ -14,6 +14,8 @@ namespace Aws;
|
|||||||
* @method \Aws\MultiRegionClient createMultiRegionApplicationDiscoveryService(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionApplicationDiscoveryService(array $args = [])
|
||||||
* @method \Aws\AutoScaling\AutoScalingClient createAutoScaling(array $args = [])
|
* @method \Aws\AutoScaling\AutoScalingClient createAutoScaling(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionAutoScaling(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionAutoScaling(array $args = [])
|
||||||
|
* @method \Aws\Budgets\BudgetsClient createBudgets(array $args = [])
|
||||||
|
* @method \Aws\MultiRegionClient createMultiRegionBudgets(array $args = [])
|
||||||
* @method \Aws\CloudFormation\CloudFormationClient createCloudFormation(array $args = [])
|
* @method \Aws\CloudFormation\CloudFormationClient createCloudFormation(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionCloudFormation(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionCloudFormation(array $args = [])
|
||||||
* @method \Aws\CloudFront\CloudFrontClient createCloudFront(array $args = [])
|
* @method \Aws\CloudFront\CloudFrontClient createCloudFront(array $args = [])
|
||||||
@@ -128,6 +130,8 @@ namespace Aws;
|
|||||||
* @method \Aws\MultiRegionClient createMultiRegionServiceCatalog(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionServiceCatalog(array $args = [])
|
||||||
* @method \Aws\Ses\SesClient createSes(array $args = [])
|
* @method \Aws\Ses\SesClient createSes(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionSes(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionSes(array $args = [])
|
||||||
|
* @method \Aws\Sms\SmsClient createSms(array $args = [])
|
||||||
|
* @method \Aws\MultiRegionClient createMultiRegionSms(array $args = [])
|
||||||
* @method \Aws\SnowBall\SnowBallClient createSnowBall(array $args = [])
|
* @method \Aws\SnowBall\SnowBallClient createSnowBall(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionSnowBall(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionSnowBall(array $args = [])
|
||||||
* @method \Aws\Sns\SnsClient createSns(array $args = [])
|
* @method \Aws\Sns\SnsClient createSns(array $args = [])
|
||||||
@@ -151,7 +155,7 @@ namespace Aws;
|
|||||||
*/
|
*/
|
||||||
class Sdk
|
class Sdk
|
||||||
{
|
{
|
||||||
const VERSION = '3.19.5';
|
const VERSION = '3.19.22';
|
||||||
|
|
||||||
/** @var array Arguments for creating clients */
|
/** @var array Arguments for creating clients */
|
||||||
private $args;
|
private $args;
|
||||||
|
14
vendor/aws/aws-sdk-php/src/Ses/SesClient.php
vendored
14
vendor/aws/aws-sdk-php/src/Ses/SesClient.php
vendored
@@ -8,12 +8,20 @@ use Aws\Credentials\CredentialsInterface;
|
|||||||
*
|
*
|
||||||
* @method \Aws\Result cloneReceiptRuleSet(array $args = [])
|
* @method \Aws\Result cloneReceiptRuleSet(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise cloneReceiptRuleSetAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise cloneReceiptRuleSetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createConfigurationSet(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createConfigurationSetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createConfigurationSetEventDestination(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createConfigurationSetEventDestinationAsync(array $args = [])
|
||||||
* @method \Aws\Result createReceiptFilter(array $args = [])
|
* @method \Aws\Result createReceiptFilter(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createReceiptFilterAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createReceiptFilterAsync(array $args = [])
|
||||||
* @method \Aws\Result createReceiptRule(array $args = [])
|
* @method \Aws\Result createReceiptRule(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createReceiptRuleAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createReceiptRuleAsync(array $args = [])
|
||||||
* @method \Aws\Result createReceiptRuleSet(array $args = [])
|
* @method \Aws\Result createReceiptRuleSet(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createReceiptRuleSetAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createReceiptRuleSetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteConfigurationSet(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteConfigurationSetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteConfigurationSetEventDestination(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteConfigurationSetEventDestinationAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteIdentity(array $args = [])
|
* @method \Aws\Result deleteIdentity(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteIdentityAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteIdentityAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteIdentityPolicy(array $args = [])
|
* @method \Aws\Result deleteIdentityPolicy(array $args = [])
|
||||||
@@ -28,6 +36,8 @@ use Aws\Credentials\CredentialsInterface;
|
|||||||
* @method \GuzzleHttp\Promise\Promise deleteVerifiedEmailAddressAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteVerifiedEmailAddressAsync(array $args = [])
|
||||||
* @method \Aws\Result describeActiveReceiptRuleSet(array $args = [])
|
* @method \Aws\Result describeActiveReceiptRuleSet(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeActiveReceiptRuleSetAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeActiveReceiptRuleSetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeConfigurationSet(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeConfigurationSetAsync(array $args = [])
|
||||||
* @method \Aws\Result describeReceiptRule(array $args = [])
|
* @method \Aws\Result describeReceiptRule(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeReceiptRuleAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeReceiptRuleAsync(array $args = [])
|
||||||
* @method \Aws\Result describeReceiptRuleSet(array $args = [])
|
* @method \Aws\Result describeReceiptRuleSet(array $args = [])
|
||||||
@@ -46,6 +56,8 @@ use Aws\Credentials\CredentialsInterface;
|
|||||||
* @method \GuzzleHttp\Promise\Promise getSendQuotaAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getSendQuotaAsync(array $args = [])
|
||||||
* @method \Aws\Result getSendStatistics(array $args = [])
|
* @method \Aws\Result getSendStatistics(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getSendStatisticsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getSendStatisticsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listConfigurationSets(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listConfigurationSetsAsync(array $args = [])
|
||||||
* @method \Aws\Result listIdentities(array $args = [])
|
* @method \Aws\Result listIdentities(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listIdentitiesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listIdentitiesAsync(array $args = [])
|
||||||
* @method \Aws\Result listIdentityPolicies(array $args = [])
|
* @method \Aws\Result listIdentityPolicies(array $args = [])
|
||||||
@@ -80,6 +92,8 @@ use Aws\Credentials\CredentialsInterface;
|
|||||||
* @method \GuzzleHttp\Promise\Promise setIdentityNotificationTopicAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise setIdentityNotificationTopicAsync(array $args = [])
|
||||||
* @method \Aws\Result setReceiptRulePosition(array $args = [])
|
* @method \Aws\Result setReceiptRulePosition(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise setReceiptRulePositionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise setReceiptRulePositionAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateConfigurationSetEventDestination(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateConfigurationSetEventDestinationAsync(array $args = [])
|
||||||
* @method \Aws\Result updateReceiptRule(array $args = [])
|
* @method \Aws\Result updateReceiptRule(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateReceiptRuleAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateReceiptRuleAsync(array $args = [])
|
||||||
* @method \Aws\Result verifyDomainDkim(array $args = [])
|
* @method \Aws\Result verifyDomainDkim(array $args = [])
|
||||||
|
9
vendor/aws/aws-sdk-php/src/Sms/Exception/SmsException.php
vendored
Normal file
9
vendor/aws/aws-sdk-php/src/Sms/Exception/SmsException.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
namespace Aws\Sms\Exception;
|
||||||
|
|
||||||
|
use Aws\Exception\AwsException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an error interacting with the **AWS Server Migration Service** service.
|
||||||
|
*/
|
||||||
|
class SmsException extends AwsException {}
|
31
vendor/aws/aws-sdk-php/src/Sms/SmsClient.php
vendored
Normal file
31
vendor/aws/aws-sdk-php/src/Sms/SmsClient.php
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
namespace Aws\Sms;
|
||||||
|
|
||||||
|
use Aws\AwsClient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This client is used to interact with the **AWS Server Migration Service** service.
|
||||||
|
* @method \Aws\Result createReplicationJob(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createReplicationJobAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteReplicationJob(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteReplicationJobAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteServerCatalog(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteServerCatalogAsync(array $args = [])
|
||||||
|
* @method \Aws\Result disassociateConnector(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise disassociateConnectorAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getConnectors(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getConnectorsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getReplicationJobs(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getReplicationJobsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getReplicationRuns(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getReplicationRunsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getServers(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getServersAsync(array $args = [])
|
||||||
|
* @method \Aws\Result importServerCatalog(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise importServerCatalogAsync(array $args = [])
|
||||||
|
* @method \Aws\Result startOnDemandReplicationRun(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise startOnDemandReplicationRunAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateReplicationJob(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateReplicationJobAsync(array $args = [])
|
||||||
|
*/
|
||||||
|
class SmsClient extends AwsClient {}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/budgets/2016-10-20/api-2.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/budgets/2016-10-20/api-2.json.php
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
// This file was auto-generated from sdk-root/src/data/cloudformation/2010-05-15/waiters-2.json
|
// This file was auto-generated from sdk-root/src/data/cloudformation/2010-05-15/waiters-2.json
|
||||||
return [ 'version' => 2, 'waiters' => [ 'StackExists' => [ 'delay' => 5, 'operation' => 'DescribeStacks', 'maxAttempts' => 20, 'acceptors' => [ [ 'matcher' => 'status', 'expected' => 200, 'state' => 'success', ], [ 'matcher' => 'error', 'expected' => 'ValidationError', 'state' => 'retry', ], ], ], 'StackCreateComplete' => [ 'delay' => 30, 'operation' => 'DescribeStacks', 'maxAttempts' => 120, 'description' => 'Wait until stack status is CREATE_COMPLETE.', 'acceptors' => [ [ 'expected' => 'CREATE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'CREATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'DELETE_COMPLETE', 'matcher' => 'pathAny', 'argument' => 'Stacks[].StackStatus', 'state' => 'failure', ], [ 'expected' => 'DELETE_IN_PROGRESS', 'matcher' => 'pathAny', 'argument' => 'Stacks[].StackStatus', 'state' => 'failure', ], [ 'expected' => 'DELETE_FAILED', 'matcher' => 'pathAny', 'argument' => 'Stacks[].StackStatus', 'state' => 'failure', ], [ 'expected' => 'ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'argument' => 'Stacks[].StackStatus', 'state' => 'failure', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'failure', ], ], ], 'StackDeleteComplete' => [ 'delay' => 30, 'operation' => 'DescribeStacks', 'maxAttempts' => 120, 'description' => 'Wait until stack status is DELETE_COMPLETE.', 'acceptors' => [ [ 'expected' => 'DELETE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'success', ], [ 'expected' => 'DELETE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_COMPLETE_CLEANUP_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], ], ], 'StackUpdateComplete' => [ 'delay' => 30, 'maxAttempts' => 120, 'operation' => 'DescribeStacks', 'description' => 'Wait until stack status is UPDATE_COMPLETE.', 'acceptors' => [ [ 'expected' => 'UPDATE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'UPDATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'UPDATE_ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'UPDATE_ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'failure', ], ], ], ],];
|
return [ 'version' => 2, 'waiters' => [ 'StackExists' => [ 'delay' => 5, 'operation' => 'DescribeStacks', 'maxAttempts' => 20, 'acceptors' => [ [ 'matcher' => 'status', 'expected' => 200, 'state' => 'success', ], [ 'matcher' => 'error', 'expected' => 'ValidationError', 'state' => 'retry', ], ], ], 'StackCreateComplete' => [ 'delay' => 30, 'operation' => 'DescribeStacks', 'maxAttempts' => 120, 'description' => 'Wait until stack status is CREATE_COMPLETE.', 'acceptors' => [ [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'DELETE_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'DELETE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'failure', ], ], ], 'StackDeleteComplete' => [ 'delay' => 30, 'operation' => 'DescribeStacks', 'maxAttempts' => 120, 'description' => 'Wait until stack status is DELETE_COMPLETE.', 'acceptors' => [ [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'DELETE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'success', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'DELETE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], ], ], 'StackUpdateComplete' => [ 'delay' => 30, 'maxAttempts' => 120, 'operation' => 'DescribeStacks', 'description' => 'Wait until stack status is UPDATE_COMPLETE.', 'acceptors' => [ [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', ], [ 'expected' => 'UPDATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'expected' => 'UPDATE_ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'failure', ], ], ], ],];
|
||||||
|
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-07/api-2.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-07/api-2.json.php
vendored
Normal file
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-07/paginators-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-07/paginators-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-07/paginators-1.json
|
||||||
|
return [ 'pagination' => [ 'ListCloudFrontOriginAccessIdentities' => [ 'input_token' => 'Marker', 'output_token' => 'CloudFrontOriginAccessIdentityList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'CloudFrontOriginAccessIdentityList.IsTruncated', 'result_key' => 'CloudFrontOriginAccessIdentityList.Items', ], 'ListDistributions' => [ 'input_token' => 'Marker', 'output_token' => 'DistributionList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'DistributionList.IsTruncated', 'result_key' => 'DistributionList.Items', ], 'ListInvalidations' => [ 'input_token' => 'Marker', 'output_token' => 'InvalidationList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'InvalidationList.IsTruncated', 'result_key' => 'InvalidationList.Items', ], 'ListStreamingDistributions' => [ 'input_token' => 'Marker', 'output_token' => 'StreamingDistributionList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'StreamingDistributionList.IsTruncated', 'result_key' => 'StreamingDistributionList.Items', ], ],];
|
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-07/waiters-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-07/waiters-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-07/waiters-1.json
|
||||||
|
return [ 'waiters' => [ '__default__' => [ 'success_type' => 'output', 'success_path' => 'Status', ], 'StreamingDistributionDeployed' => [ 'operation' => 'GetStreamingDistribution', 'description' => 'Wait until a streaming distribution is deployed.', 'interval' => 60, 'max_attempts' => 25, 'success_value' => 'Deployed', ], 'DistributionDeployed' => [ 'operation' => 'GetDistribution', 'description' => 'Wait until a distribution is deployed.', 'interval' => 60, 'max_attempts' => 25, 'success_value' => 'Deployed', ], 'InvalidationCompleted' => [ 'operation' => 'GetInvalidation', 'description' => 'Wait until an invalidation has completed.', 'interval' => 20, 'max_attempts' => 30, 'success_value' => 'Completed', ], ],];
|
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-07/waiters-2.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-07/waiters-2.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-07/waiters-2.json
|
||||||
|
return [ 'version' => 2, 'waiters' => [ 'DistributionDeployed' => [ 'delay' => 60, 'operation' => 'GetDistribution', 'maxAttempts' => 25, 'description' => 'Wait until a distribution is deployed.', 'acceptors' => [ [ 'expected' => 'Deployed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'Distribution.Status', ], ], ], 'InvalidationCompleted' => [ 'delay' => 20, 'operation' => 'GetInvalidation', 'maxAttempts' => 30, 'description' => 'Wait until an invalidation has completed.', 'acceptors' => [ [ 'expected' => 'Completed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'Invalidation.Status', ], ], ], 'StreamingDistributionDeployed' => [ 'delay' => 60, 'operation' => 'GetStreamingDistribution', 'maxAttempts' => 25, 'description' => 'Wait until a streaming distribution is deployed.', 'acceptors' => [ [ 'expected' => 'Deployed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'StreamingDistribution.Status', ], ], ], ],];
|
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-29/api-2.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-29/api-2.json.php
vendored
Normal file
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-29/paginators-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-29/paginators-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-29/paginators-1.json
|
||||||
|
return [ 'pagination' => [ 'ListCloudFrontOriginAccessIdentities' => [ 'input_token' => 'Marker', 'output_token' => 'CloudFrontOriginAccessIdentityList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'CloudFrontOriginAccessIdentityList.IsTruncated', 'result_key' => 'CloudFrontOriginAccessIdentityList.Items', ], 'ListDistributions' => [ 'input_token' => 'Marker', 'output_token' => 'DistributionList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'DistributionList.IsTruncated', 'result_key' => 'DistributionList.Items', ], 'ListInvalidations' => [ 'input_token' => 'Marker', 'output_token' => 'InvalidationList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'InvalidationList.IsTruncated', 'result_key' => 'InvalidationList.Items', ], 'ListStreamingDistributions' => [ 'input_token' => 'Marker', 'output_token' => 'StreamingDistributionList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'StreamingDistributionList.IsTruncated', 'result_key' => 'StreamingDistributionList.Items', ], ],];
|
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-29/waiters-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-29/waiters-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-29/waiters-1.json
|
||||||
|
return [ 'waiters' => [ '__default__' => [ 'success_type' => 'output', 'success_path' => 'Status', ], 'StreamingDistributionDeployed' => [ 'operation' => 'GetStreamingDistribution', 'description' => 'Wait until a streaming distribution is deployed.', 'interval' => 60, 'max_attempts' => 25, 'success_value' => 'Deployed', ], 'DistributionDeployed' => [ 'operation' => 'GetDistribution', 'description' => 'Wait until a distribution is deployed.', 'interval' => 60, 'max_attempts' => 25, 'success_value' => 'Deployed', ], 'InvalidationCompleted' => [ 'operation' => 'GetInvalidation', 'description' => 'Wait until an invalidation has completed.', 'interval' => 20, 'max_attempts' => 30, 'success_value' => 'Completed', ], ],];
|
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-29/waiters-2.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/cloudfront/2016-09-29/waiters-2.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-29/waiters-2.json
|
||||||
|
return [ 'version' => 2, 'waiters' => [ 'DistributionDeployed' => [ 'delay' => 60, 'operation' => 'GetDistribution', 'maxAttempts' => 25, 'description' => 'Wait until a distribution is deployed.', 'acceptors' => [ [ 'expected' => 'Deployed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'Distribution.Status', ], ], ], 'InvalidationCompleted' => [ 'delay' => 20, 'operation' => 'GetInvalidation', 'maxAttempts' => 30, 'description' => 'Wait until an invalidation has completed.', 'acceptors' => [ [ 'expected' => 'Completed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'Invalidation.Status', ], ], ], 'StreamingDistributionDeployed' => [ 'delay' => 60, 'operation' => 'GetStreamingDistribution', 'maxAttempts' => 25, 'description' => 'Wait until a streaming distribution is deployed.', 'acceptors' => [ [ 'expected' => 'Deployed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'StreamingDistribution.Status', ], ], ], ],];
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/ec2/2016-09-15/api-2.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/ec2/2016-09-15/api-2.json.php
vendored
Normal file
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/ec2/2016-09-15/paginators-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/ec2/2016-09-15/paginators-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/ec2/2016-09-15/paginators-1.json
|
||||||
|
return [ 'pagination' => [ 'DescribeAccountAttributes' => [ 'result_key' => 'AccountAttributes', ], 'DescribeAddresses' => [ 'result_key' => 'Addresses', ], 'DescribeAvailabilityZones' => [ 'result_key' => 'AvailabilityZones', ], 'DescribeBundleTasks' => [ 'result_key' => 'BundleTasks', ], 'DescribeConversionTasks' => [ 'result_key' => 'ConversionTasks', ], 'DescribeCustomerGateways' => [ 'result_key' => 'CustomerGateways', ], 'DescribeDhcpOptions' => [ 'result_key' => 'DhcpOptions', ], 'DescribeExportTasks' => [ 'result_key' => 'ExportTasks', ], 'DescribeImages' => [ 'result_key' => 'Images', ], 'DescribeInstanceStatus' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'InstanceStatuses', ], 'DescribeInstances' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Reservations', ], 'DescribeInternetGateways' => [ 'result_key' => 'InternetGateways', ], 'DescribeKeyPairs' => [ 'result_key' => 'KeyPairs', ], 'DescribeNetworkAcls' => [ 'result_key' => 'NetworkAcls', ], 'DescribeNetworkInterfaces' => [ 'result_key' => 'NetworkInterfaces', ], 'DescribePlacementGroups' => [ 'result_key' => 'PlacementGroups', ], 'DescribeRegions' => [ 'result_key' => 'Regions', ], 'DescribeReservedInstances' => [ 'result_key' => 'ReservedInstances', ], 'DescribeReservedInstancesListings' => [ 'result_key' => 'ReservedInstancesListings', ], 'DescribeReservedInstancesOfferings' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'ReservedInstancesOfferings', ], 'DescribeReservedInstancesModifications' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'result_key' => 'ReservedInstancesModifications', ], 'DescribeRouteTables' => [ 'result_key' => 'RouteTables', ], 'DescribeSecurityGroups' => [ 'result_key' => 'SecurityGroups', ], 'DescribeSnapshots' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Snapshots', ], 'DescribeSpotInstanceRequests' => [ 'result_key' => 'SpotInstanceRequests', ], 'DescribeSpotFleetRequests' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'SpotFleetRequestConfigs', ], 'DescribeSpotPriceHistory' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'SpotPriceHistory', ], 'DescribeSubnets' => [ 'result_key' => 'Subnets', ], 'DescribeTags' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Tags', ], 'DescribeVolumeStatus' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'VolumeStatuses', ], 'DescribeVolumes' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Volumes', ], 'DescribeVpcs' => [ 'result_key' => 'Vpcs', ], 'DescribeVpcPeeringConnections' => [ 'result_key' => 'VpcPeeringConnections', ], 'DescribeVpnConnections' => [ 'result_key' => 'VpnConnections', ], 'DescribeVpnGateways' => [ 'result_key' => 'VpnGateways', ], ],];
|
3
vendor/aws/aws-sdk-php/src/data/ec2/2016-09-15/waiters-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/ec2/2016-09-15/waiters-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/ec2/2016-09-15/waiters-1.json
|
||||||
|
return [ 'waiters' => [ '__default__' => [ 'interval' => 15, 'max_attempts' => 40, 'acceptor_type' => 'output', ], '__InstanceState' => [ 'operation' => 'DescribeInstances', 'acceptor_path' => 'Reservations[].Instances[].State.Name', ], '__InstanceStatus' => [ 'operation' => 'DescribeInstanceStatus', 'success_value' => 'ok', ], 'SystemStatusOk' => [ 'extends' => '__InstanceStatus', 'acceptor_path' => 'InstanceStatuses[].SystemStatus.Status', ], 'InstanceStatusOk' => [ 'extends' => '__InstanceStatus', 'acceptor_path' => 'InstanceStatuses[].InstanceStatus.Status', ], 'ImageAvailable' => [ 'operation' => 'DescribeImages', 'acceptor_path' => 'Images[].State', 'success_value' => 'available', 'failure_value' => [ 'failed', ], ], 'InstanceRunning' => [ 'extends' => '__InstanceState', 'success_value' => 'running', 'failure_value' => [ 'shutting-down', 'terminated', 'stopping', ], ], 'InstanceStopped' => [ 'extends' => '__InstanceState', 'success_value' => 'stopped', 'failure_value' => [ 'pending', 'terminated', ], ], 'InstanceTerminated' => [ 'extends' => '__InstanceState', 'success_value' => 'terminated', 'failure_value' => [ 'pending', 'stopping', ], ], '__ExportTaskState' => [ 'operation' => 'DescribeExportTasks', 'acceptor_path' => 'ExportTasks[].State', ], 'ExportTaskCompleted' => [ 'extends' => '__ExportTaskState', 'success_value' => 'completed', ], 'ExportTaskCancelled' => [ 'extends' => '__ExportTaskState', 'success_value' => 'cancelled', ], 'SnapshotCompleted' => [ 'operation' => 'DescribeSnapshots', 'success_path' => 'Snapshots[].State', 'success_value' => 'completed', ], 'SubnetAvailable' => [ 'operation' => 'DescribeSubnets', 'success_path' => 'Subnets[].State', 'success_value' => 'available', ], '__VolumeStatus' => [ 'operation' => 'DescribeVolumes', 'acceptor_path' => 'Volumes[].State', ], 'VolumeAvailable' => [ 'extends' => '__VolumeStatus', 'success_value' => 'available', 'failure_value' => [ 'deleted', ], ], 'VolumeInUse' => [ 'extends' => '__VolumeStatus', 'success_value' => 'in-use', 'failure_value' => [ 'deleted', ], ], 'VolumeDeleted' => [ 'extends' => '__VolumeStatus', 'success_type' => 'error', 'success_value' => 'InvalidVolume.NotFound', ], 'VpcAvailable' => [ 'operation' => 'DescribeVpcs', 'success_path' => 'Vpcs[].State', 'success_value' => 'available', ], '__VpnConnectionState' => [ 'operation' => 'DescribeVpnConnections', 'acceptor_path' => 'VpnConnections[].State', ], 'VpnConnectionAvailable' => [ 'extends' => '__VpnConnectionState', 'success_value' => 'available', 'failure_value' => [ 'deleting', 'deleted', ], ], 'VpnConnectionDeleted' => [ 'extends' => '__VpnConnectionState', 'success_value' => 'deleted', 'failure_value' => [ 'pending', ], ], 'BundleTaskComplete' => [ 'operation' => 'DescribeBundleTasks', 'acceptor_path' => 'BundleTasks[].State', 'success_value' => 'complete', 'failure_value' => [ 'failed', ], ], '__ConversionTaskState' => [ 'operation' => 'DescribeConversionTasks', 'acceptor_path' => 'ConversionTasks[].State', ], 'ConversionTaskCompleted' => [ 'extends' => '__ConversionTaskState', 'success_value' => 'completed', 'failure_value' => [ 'cancelled', 'cancelling', ], ], 'ConversionTaskCancelled' => [ 'extends' => '__ConversionTaskState', 'success_value' => 'cancelled', ], '__CustomerGatewayState' => [ 'operation' => 'DescribeCustomerGateways', 'acceptor_path' => 'CustomerGateways[].State', ], 'CustomerGatewayAvailable' => [ 'extends' => '__CustomerGatewayState', 'success_value' => 'available', 'failure_value' => [ 'deleted', 'deleting', ], ], 'ConversionTaskDeleted' => [ 'extends' => '__CustomerGatewayState', 'success_value' => 'deleted', ], '__SpotInstanceRequestState' => [ 'operation' => 'DescribeSpotInstanceRequests', 'acceptor_path' => 'SpotInstanceRequests[].Status.Code', ], 'SpotInstanceRequestFulfilled' => [ 'extends' => '__SpotInstanceRequestState', 'success_value' => 'fulfilled', 'failure_value' => [ 'schedule-expired', 'canceled-before-fulfillment', 'bad-parameters', 'system-error', ], ], ],];
|
3
vendor/aws/aws-sdk-php/src/data/ec2/2016-09-15/waiters-2.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/ec2/2016-09-15/waiters-2.json.php
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/ecr/2015-09-21/paginators-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/ecr/2015-09-21/paginators-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/ecr/2015-09-21/paginators-1.json
|
||||||
|
return [ 'pagination' => [ 'ListImages' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'imageIds', ], 'DescribeImages' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'imageDetails', ], 'DescribeRepositories' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'repositories', ], ],];
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/redshift/2012-12-01/waiters-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/redshift/2012-12-01/waiters-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/redshift/2012-12-01/waiters-1.json
|
||||||
|
return [ 'waiters' => [ '__default__' => [ 'acceptor_type' => 'output', ], '__ClusterState' => [ 'interval' => 60, 'max_attempts' => 30, 'operation' => 'DescribeClusters', 'acceptor_path' => 'Clusters[].ClusterStatus', ], 'ClusterAvailable' => [ 'extends' => '__ClusterState', 'ignore_errors' => [ 'ClusterNotFound', ], 'success_value' => 'available', 'failure_value' => [ 'deleting', ], ], 'ClusterDeleted' => [ 'extends' => '__ClusterState', 'success_type' => 'error', 'success_value' => 'ClusterNotFound', 'failure_value' => [ 'creating', 'rebooting', ], ], 'SnapshotAvailable' => [ 'interval' => 15, 'max_attempts' => 20, 'operation' => 'DescribeClusterSnapshots', 'acceptor_path' => 'Snapshots[].Status', 'success_value' => 'available', 'failure_value' => [ 'failed', 'deleted', ], ], ],];
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/s3/2006-03-01/waiters-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/s3/2006-03-01/waiters-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/s3/2006-03-01/waiters-1.json
|
||||||
|
return [ 'waiters' => [ '__default__' => [ 'interval' => 5, 'max_attempts' => 20, ], 'BucketExists' => [ 'operation' => 'HeadBucket', 'ignore_errors' => [ 'NoSuchBucket', ], 'success_type' => 'output', ], 'BucketNotExists' => [ 'operation' => 'HeadBucket', 'success_type' => 'error', 'success_value' => 'NoSuchBucket', ], 'ObjectExists' => [ 'operation' => 'HeadObject', 'ignore_errors' => [ 'NoSuchKey', ], 'success_type' => 'output', ], 'ObjectNotExists' => [ 'operation' => 'HeadObject', 'success_type' => 'error', 'success_value' => 'NoSuchKey', ], ],];
|
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/sms/2016-10-24/api-2.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/sms/2016-10-24/api-2.json.php
vendored
Normal file
File diff suppressed because one or more lines are too long
3
vendor/aws/aws-sdk-php/src/data/sms/2016-10-24/paginators-1.json.php
vendored
Normal file
3
vendor/aws/aws-sdk-php/src/data/sms/2016-10-24/paginators-1.json.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
// This file was auto-generated from sdk-root/src/data/sms/2016-10-24/paginators-1.json
|
||||||
|
return [ 'pagination' => [ 'GetReplicationJobs' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'replicationJobList', ], 'GetReplicationRuns' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'replicationRunList', ], 'GetConnectors' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'connectorList', ], 'GetServers' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'serverList', ], ],];
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -13,7 +13,7 @@
|
|||||||
"php": ">=5.5.9",
|
"php": ">=5.5.9",
|
||||||
"illuminate/support": "5.1.*|5.2.*|5.3.*",
|
"illuminate/support": "5.1.*|5.2.*|5.3.*",
|
||||||
"symfony/finder": "~2.7|~3.0",
|
"symfony/finder": "~2.7|~3.0",
|
||||||
"maximebf/debugbar": "~1.11.0|~1.12.0"
|
"maximebf/debugbar": "~1.13.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.2-dev"
|
"dev-master": "2.3-dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -100,7 +100,12 @@ class QueryCollector extends PDOCollector
|
|||||||
$bindings = $this->checkBindings($bindings);
|
$bindings = $this->checkBindings($bindings);
|
||||||
if (!empty($bindings) && $this->renderSqlWithParams) {
|
if (!empty($bindings) && $this->renderSqlWithParams) {
|
||||||
foreach ($bindings as $key => $binding) {
|
foreach ($bindings as $key => $binding) {
|
||||||
$regex = is_numeric($key) ? '/\?/' : "/:{$key}/";
|
// This regex matches placeholders only, not the question marks,
|
||||||
|
// nested in quotes, while we iterate through the bindings
|
||||||
|
// and substitute placeholders by suitable values.
|
||||||
|
$regex = is_numeric($key)
|
||||||
|
? "/\?(?=(?:[^'\\\']*'[^'\\\']*')*[^'\\\']*$)/"
|
||||||
|
: "/:{$key}(?=(?:[^'\\\']*'[^'\\\']*')*[^'\\\']*$)/";
|
||||||
$query = preg_replace($regex, $pdo->quote($binding), $query, 1);
|
$query = preg_replace($regex, $pdo->quote($binding), $query, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -182,7 +182,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
$this->app['events']->subscribe($eventCollector);
|
$this->app['events']->subscribe($eventCollector);
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add EventCollector to Laravel Debugbar: ' . $e->getMessage(),
|
'Cannot add EventCollector to Laravel Debugbar: ' . $e->getMessage(),
|
||||||
$e->getCode(),
|
$e->getCode(),
|
||||||
@@ -203,7 +203,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add ViewCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
'Cannot add ViewCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
||||||
)
|
)
|
||||||
@@ -215,7 +215,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
try {
|
try {
|
||||||
$this->addCollector($this->app->make('Barryvdh\Debugbar\DataCollector\IlluminateRouteCollector'));
|
$this->addCollector($this->app->make('Barryvdh\Debugbar\DataCollector\IlluminateRouteCollector'));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add RouteCollector to Laravel Debugbar: ' . $e->getMessage(),
|
'Cannot add RouteCollector to Laravel Debugbar: ' . $e->getMessage(),
|
||||||
$e->getCode(),
|
$e->getCode(),
|
||||||
@@ -253,7 +253,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
$this->addCollector(new MonologCollector($this->app['log']->getMonolog()));
|
$this->addCollector(new MonologCollector($this->app['log']->getMonolog()));
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add LogsCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
'Cannot add LogsCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
||||||
)
|
)
|
||||||
@@ -313,7 +313,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add listen to Queries for Laravel Debugbar: ' . $e->getMessage(),
|
'Cannot add listen to Queries for Laravel Debugbar: ' . $e->getMessage(),
|
||||||
$e->getCode(),
|
$e->getCode(),
|
||||||
@@ -334,7 +334,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
$this['messages']->aggregate(new SwiftLogCollector($mailer));
|
$this['messages']->aggregate(new SwiftLogCollector($mailer));
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add MailCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
'Cannot add MailCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
||||||
)
|
)
|
||||||
@@ -347,7 +347,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
$file = $this->app['config']->get('debugbar.options.logs.file');
|
$file = $this->app['config']->get('debugbar.options.logs.file');
|
||||||
$this->addCollector(new LogsCollector($file));
|
$this->addCollector(new LogsCollector($file));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add LogsCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
'Cannot add LogsCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
||||||
)
|
)
|
||||||
@@ -373,7 +373,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
);
|
);
|
||||||
$this->addCollector($authCollector);
|
$this->addCollector($authCollector);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add AuthCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
'Cannot add AuthCollector to Laravel Debugbar: ' . $e->getMessage(), $e->getCode(), $e
|
||||||
)
|
)
|
||||||
@@ -430,7 +430,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
try {
|
try {
|
||||||
$collector->stopMeasure($name);
|
$collector->stopMeasure($name);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// $this->addException($e);
|
// $this->addThrowable($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -439,13 +439,24 @@ class LaravelDebugbar extends DebugBar
|
|||||||
* Adds an exception to be profiled in the debug bar
|
* Adds an exception to be profiled in the debug bar
|
||||||
*
|
*
|
||||||
* @param Exception $e
|
* @param Exception $e
|
||||||
|
* @deprecated in favor of addThrowable
|
||||||
*/
|
*/
|
||||||
public function addException(Exception $e)
|
public function addException(Exception $e)
|
||||||
|
{
|
||||||
|
return $this->addThrowable($e);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds an exception to be profiled in the debug bar
|
||||||
|
*
|
||||||
|
* @param Exception $e
|
||||||
|
*/
|
||||||
|
public function addThrowable($e)
|
||||||
{
|
{
|
||||||
if ($this->hasCollector('exceptions')) {
|
if ($this->hasCollector('exceptions')) {
|
||||||
/** @var \DebugBar\DataCollector\ExceptionsCollector $collector */
|
/** @var \DebugBar\DataCollector\ExceptionsCollector $collector */
|
||||||
$collector = $this->getCollector('exceptions');
|
$collector = $this->getCollector('exceptions');
|
||||||
$collector->addException($e);
|
$collector->addThrowable($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -480,7 +491,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
|
|
||||||
// Show the Http Response Exception in the Debugbar, when available
|
// Show the Http Response Exception in the Debugbar, when available
|
||||||
if (isset($response->exception)) {
|
if (isset($response->exception)) {
|
||||||
$this->addException($response->exception);
|
$this->addThrowable($response->exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->shouldCollect('config', false)) {
|
if ($this->shouldCollect('config', false)) {
|
||||||
@@ -489,7 +500,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
$configCollector->setData($app['config']->all());
|
$configCollector->setData($app['config']->all());
|
||||||
$this->addCollector($configCollector);
|
$this->addCollector($configCollector);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add ConfigCollector to Laravel Debugbar: ' . $e->getMessage(),
|
'Cannot add ConfigCollector to Laravel Debugbar: ' . $e->getMessage(),
|
||||||
$e->getCode(),
|
$e->getCode(),
|
||||||
@@ -510,7 +521,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
try {
|
try {
|
||||||
$this->addCollector(new SessionCollector($sessionManager));
|
$this->addCollector(new SessionCollector($sessionManager));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add SessionCollector to Laravel Debugbar: ' . $e->getMessage(),
|
'Cannot add SessionCollector to Laravel Debugbar: ' . $e->getMessage(),
|
||||||
$e->getCode(),
|
$e->getCode(),
|
||||||
@@ -527,7 +538,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
try {
|
try {
|
||||||
$this->addCollector(new SymfonyRequestCollector($request, $response, $sessionManager));
|
$this->addCollector(new SymfonyRequestCollector($request, $response, $sessionManager));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add SymfonyRequestCollector to Laravel Debugbar: ' . $e->getMessage(),
|
'Cannot add SymfonyRequestCollector to Laravel Debugbar: ' . $e->getMessage(),
|
||||||
$e->getCode(),
|
$e->getCode(),
|
||||||
@@ -542,7 +553,7 @@ class LaravelDebugbar extends DebugBar
|
|||||||
try {
|
try {
|
||||||
$this->addCollector(new ClockworkCollector($request, $response, $sessionManager));
|
$this->addCollector(new ClockworkCollector($request, $response, $sessionManager));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->addException(
|
$this->addThrowable(
|
||||||
new Exception(
|
new Exception(
|
||||||
'Cannot add ClockworkCollector to Laravel Debugbar: ' . $e->getMessage(),
|
'Cannot add ClockworkCollector to Laravel Debugbar: ' . $e->getMessage(),
|
||||||
$e->getCode(),
|
$e->getCode(),
|
||||||
@@ -697,7 +708,9 @@ class LaravelDebugbar extends DebugBar
|
|||||||
$content = $content . $renderedContent;
|
$content = $content . $renderedContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update the new content and reset the content length
|
||||||
$response->setContent($content);
|
$response->setContent($content);
|
||||||
|
$response->headers->remove('Content-Length');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,11 +1,13 @@
|
|||||||
<?php namespace Barryvdh\Debugbar\Middleware;
|
<?php namespace Barryvdh\Debugbar\Middleware;
|
||||||
|
|
||||||
|
use Error;
|
||||||
use Closure;
|
use Closure;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Barryvdh\Debugbar\LaravelDebugbar;
|
use Barryvdh\Debugbar\LaravelDebugbar;
|
||||||
use Illuminate\Contracts\Container\Container;
|
use Illuminate\Contracts\Container\Container;
|
||||||
use Illuminate\Contracts\Debug\ExceptionHandler;
|
use Illuminate\Contracts\Debug\ExceptionHandler;
|
||||||
|
use Symfony\Component\Debug\Exception\FatalThrowableError;
|
||||||
|
|
||||||
class Debugbar
|
class Debugbar
|
||||||
{
|
{
|
||||||
@@ -49,6 +51,9 @@ class Debugbar
|
|||||||
$response = $next($request);
|
$response = $next($request);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$response = $this->handleException($request, $e);
|
$response = $this->handleException($request, $e);
|
||||||
|
} catch (Error $error) {
|
||||||
|
$e = new FatalThrowableError($error);
|
||||||
|
$response = $this->handleException($request, $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modify the response to add the Debugbar
|
// Modify the response to add the Debugbar
|
||||||
|
17
vendor/bin/np
vendored
Normal file
17
vendor/bin/np
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
dir=$(d=${0%[/\\]*}; cd "$d"; cd "../sly/notification-pusher" && pwd)
|
||||||
|
|
||||||
|
# See if we are running in Cygwin by checking for cygpath program
|
||||||
|
if command -v 'cygpath' >/dev/null 2>&1; then
|
||||||
|
# Cygwin paths start with /cygdrive/ which will break windows PHP,
|
||||||
|
# so we need to translate the dir path to windows format. However
|
||||||
|
# we could be using cygwin PHP which does not require this, so we
|
||||||
|
# test if the path to PHP starts with /cygdrive/ rather than /usr/bin
|
||||||
|
if [[ $(which php) == /cygdrive/* ]]; then
|
||||||
|
dir=$(cygpath -m "$dir");
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dir=$(echo $dir | sed 's/ /\ /g')
|
||||||
|
"${dir}/np" "$@"
|
4
vendor/bin/np.bat
vendored
Normal file
4
vendor/bin/np.bat
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
@ECHO OFF
|
||||||
|
setlocal DISABLEDELAYEDEXPANSION
|
||||||
|
SET BIN_TARGET=%~dp0/../sly/notification-pusher/np
|
||||||
|
php "%BIN_TARGET%" %*
|
18
vendor/bin/phpspec
vendored
18
vendor/bin/phpspec
vendored
@@ -1 +1,17 @@
|
|||||||
../phpspec/phpspec/bin/phpspec
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
dir=$(d=${0%[/\\]*}; cd "$d"; cd "../phpspec/phpspec/bin" && pwd)
|
||||||
|
|
||||||
|
# See if we are running in Cygwin by checking for cygpath program
|
||||||
|
if command -v 'cygpath' >/dev/null 2>&1; then
|
||||||
|
# Cygwin paths start with /cygdrive/ which will break windows PHP,
|
||||||
|
# so we need to translate the dir path to windows format. However
|
||||||
|
# we could be using cygwin PHP which does not require this, so we
|
||||||
|
# test if the path to PHP starts with /cygdrive/ rather than /usr/bin
|
||||||
|
if [[ $(which php) == /cygdrive/* ]]; then
|
||||||
|
dir=$(cygpath -m "$dir");
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dir=$(echo $dir | sed 's/ /\ /g')
|
||||||
|
"${dir}/phpspec" "$@"
|
||||||
|
4
vendor/bin/phpspec.bat
vendored
Normal file
4
vendor/bin/phpspec.bat
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
@ECHO OFF
|
||||||
|
setlocal DISABLEDELAYEDEXPANSION
|
||||||
|
SET BIN_TARGET=%~dp0/../phpspec/phpspec/bin/phpspec
|
||||||
|
php "%BIN_TARGET%" %*
|
20
vendor/composer/ClassLoader.php
vendored
20
vendor/composer/ClassLoader.php
vendored
@@ -13,9 +13,7 @@
|
|||||||
namespace Composer\Autoload;
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClassLoader implements a PSR-0 class loader
|
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
|
||||||
*
|
|
||||||
* See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
|
|
||||||
*
|
*
|
||||||
* $loader = new \Composer\Autoload\ClassLoader();
|
* $loader = new \Composer\Autoload\ClassLoader();
|
||||||
*
|
*
|
||||||
@@ -39,6 +37,8 @@ namespace Composer\Autoload;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||||
|
* @see http://www.php-fig.org/psr/psr-0/
|
||||||
|
* @see http://www.php-fig.org/psr/psr-4/
|
||||||
*/
|
*/
|
||||||
class ClassLoader
|
class ClassLoader
|
||||||
{
|
{
|
||||||
@@ -53,8 +53,8 @@ class ClassLoader
|
|||||||
|
|
||||||
private $useIncludePath = false;
|
private $useIncludePath = false;
|
||||||
private $classMap = array();
|
private $classMap = array();
|
||||||
|
|
||||||
private $classMapAuthoritative = false;
|
private $classMapAuthoritative = false;
|
||||||
|
private $missingClasses = array();
|
||||||
|
|
||||||
public function getPrefixes()
|
public function getPrefixes()
|
||||||
{
|
{
|
||||||
@@ -147,7 +147,7 @@ class ClassLoader
|
|||||||
* appending or prepending to the ones previously set for this namespace.
|
* appending or prepending to the ones previously set for this namespace.
|
||||||
*
|
*
|
||||||
* @param string $prefix The prefix/namespace, with trailing '\\'
|
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||||
* @param array|string $paths The PSR-0 base directories
|
* @param array|string $paths The PSR-4 base directories
|
||||||
* @param bool $prepend Whether to prepend the directories
|
* @param bool $prepend Whether to prepend the directories
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
@@ -322,20 +322,20 @@ class ClassLoader
|
|||||||
if (isset($this->classMap[$class])) {
|
if (isset($this->classMap[$class])) {
|
||||||
return $this->classMap[$class];
|
return $this->classMap[$class];
|
||||||
}
|
}
|
||||||
if ($this->classMapAuthoritative) {
|
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$file = $this->findFileWithExtension($class, '.php');
|
$file = $this->findFileWithExtension($class, '.php');
|
||||||
|
|
||||||
// Search for Hack files if we are running on HHVM
|
// Search for Hack files if we are running on HHVM
|
||||||
if ($file === null && defined('HHVM_VERSION')) {
|
if (false === $file && defined('HHVM_VERSION')) {
|
||||||
$file = $this->findFileWithExtension($class, '.hh');
|
$file = $this->findFileWithExtension($class, '.hh');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($file === null) {
|
if (false === $file) {
|
||||||
// Remember that this class does not exist.
|
// Remember that this class does not exist.
|
||||||
return $this->classMap[$class] = false;
|
$this->missingClasses[$class] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $file;
|
return $file;
|
||||||
@@ -399,6 +399,8 @@ class ClassLoader
|
|||||||
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
||||||
return $file;
|
return $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
vendor/composer/LICENSE
vendored
2
vendor/composer/LICENSE
vendored
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Copyright (c) 2015 Nils Adermann, Jordi Boggiano
|
Copyright (c) 2016 Nils Adermann, Jordi Boggiano
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
8
vendor/composer/autoload_classmap.php
vendored
8
vendor/composer/autoload_classmap.php
vendored
@@ -122,6 +122,7 @@ return array(
|
|||||||
'DOMPDF_Exception' => $vendorDir . '/dompdf/dompdf/include/dompdf_exception.cls.php',
|
'DOMPDF_Exception' => $vendorDir . '/dompdf/dompdf/include/dompdf_exception.cls.php',
|
||||||
'DOMPDF_Image_Exception' => $vendorDir . '/dompdf/dompdf/include/dompdf_image_exception.cls.php',
|
'DOMPDF_Image_Exception' => $vendorDir . '/dompdf/dompdf/include/dompdf_image_exception.cls.php',
|
||||||
'DatabaseSeeder' => $baseDir . '/database/seeds/DatabaseSeeder.php',
|
'DatabaseSeeder' => $baseDir . '/database/seeds/DatabaseSeeder.php',
|
||||||
|
'EasyPeasyICS' => $vendorDir . '/phpmailer/phpmailer/extras/EasyPeasyICS.php',
|
||||||
'Encoding_Map' => $vendorDir . '/phenx/php-font-lib/classes/Encoding_Map.php',
|
'Encoding_Map' => $vendorDir . '/phenx/php-font-lib/classes/Encoding_Map.php',
|
||||||
'File_Iterator' => $vendorDir . '/phpunit/php-file-iterator/src/Iterator.php',
|
'File_Iterator' => $vendorDir . '/phpunit/php-file-iterator/src/Iterator.php',
|
||||||
'File_Iterator_Facade' => $vendorDir . '/phpunit/php-file-iterator/src/Facade.php',
|
'File_Iterator_Facade' => $vendorDir . '/phpunit/php-file-iterator/src/Facade.php',
|
||||||
@@ -218,6 +219,9 @@ return array(
|
|||||||
'Null_Frame_Reflower' => $vendorDir . '/dompdf/dompdf/include/null_frame_reflower.cls.php',
|
'Null_Frame_Reflower' => $vendorDir . '/dompdf/dompdf/include/null_frame_reflower.cls.php',
|
||||||
'Null_Positioner' => $vendorDir . '/dompdf/dompdf/include/null_positioner.cls.php',
|
'Null_Positioner' => $vendorDir . '/dompdf/dompdf/include/null_positioner.cls.php',
|
||||||
'PDFLib_Adapter' => $vendorDir . '/dompdf/dompdf/include/pdflib_adapter.cls.php',
|
'PDFLib_Adapter' => $vendorDir . '/dompdf/dompdf/include/pdflib_adapter.cls.php',
|
||||||
|
'PHPMailer' => $vendorDir . '/phpmailer/phpmailer/class.phpmailer.php',
|
||||||
|
'PHPMailerOAuth' => $vendorDir . '/phpmailer/phpmailer/class.phpmaileroauth.php',
|
||||||
|
'PHPMailerOAuthGoogle' => $vendorDir . '/phpmailer/phpmailer/class.phpmaileroauthgoogle.php',
|
||||||
'PHPUnit_Exception' => $vendorDir . '/phpunit/phpunit/src/Exception.php',
|
'PHPUnit_Exception' => $vendorDir . '/phpunit/phpunit/src/Exception.php',
|
||||||
'PHPUnit_Extensions_GroupTestSuite' => $vendorDir . '/phpunit/phpunit/src/Extensions/GroupTestSuite.php',
|
'PHPUnit_Extensions_GroupTestSuite' => $vendorDir . '/phpunit/phpunit/src/Extensions/GroupTestSuite.php',
|
||||||
'PHPUnit_Extensions_PhptTestCase' => $vendorDir . '/phpunit/phpunit/src/Extensions/PhptTestCase.php',
|
'PHPUnit_Extensions_PhptTestCase' => $vendorDir . '/phpunit/phpunit/src/Extensions/PhptTestCase.php',
|
||||||
@@ -614,11 +618,13 @@ return array(
|
|||||||
'PHP_Token_XOR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
|
'PHP_Token_XOR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
|
||||||
'PHP_Token_YIELD' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
|
'PHP_Token_YIELD' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
|
||||||
'PHP_Token_YIELD_FROM' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
|
'PHP_Token_YIELD_FROM' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
|
||||||
|
'POP3' => $vendorDir . '/phpmailer/phpmailer/class.pop3.php',
|
||||||
'Page_Cache' => $vendorDir . '/dompdf/dompdf/include/page_cache.cls.php',
|
'Page_Cache' => $vendorDir . '/dompdf/dompdf/include/page_cache.cls.php',
|
||||||
'Page_Frame_Decorator' => $vendorDir . '/dompdf/dompdf/include/page_frame_decorator.cls.php',
|
'Page_Frame_Decorator' => $vendorDir . '/dompdf/dompdf/include/page_frame_decorator.cls.php',
|
||||||
'Page_Frame_Reflower' => $vendorDir . '/dompdf/dompdf/include/page_frame_reflower.cls.php',
|
'Page_Frame_Reflower' => $vendorDir . '/dompdf/dompdf/include/page_frame_reflower.cls.php',
|
||||||
'Positioner' => $vendorDir . '/dompdf/dompdf/include/positioner.cls.php',
|
'Positioner' => $vendorDir . '/dompdf/dompdf/include/positioner.cls.php',
|
||||||
'Renderer' => $vendorDir . '/dompdf/dompdf/include/renderer.cls.php',
|
'Renderer' => $vendorDir . '/dompdf/dompdf/include/renderer.cls.php',
|
||||||
|
'SMTP' => $vendorDir . '/phpmailer/phpmailer/class.smtp.php',
|
||||||
'SebastianBergmann\\Comparator\\ArrayComparator' => $vendorDir . '/sebastian/comparator/src/ArrayComparator.php',
|
'SebastianBergmann\\Comparator\\ArrayComparator' => $vendorDir . '/sebastian/comparator/src/ArrayComparator.php',
|
||||||
'SebastianBergmann\\Comparator\\Comparator' => $vendorDir . '/sebastian/comparator/src/Comparator.php',
|
'SebastianBergmann\\Comparator\\Comparator' => $vendorDir . '/sebastian/comparator/src/Comparator.php',
|
||||||
'SebastianBergmann\\Comparator\\ComparisonFailure' => $vendorDir . '/sebastian/comparator/src/ComparisonFailure.php',
|
'SebastianBergmann\\Comparator\\ComparisonFailure' => $vendorDir . '/sebastian/comparator/src/ComparisonFailure.php',
|
||||||
@@ -679,4 +685,6 @@ return array(
|
|||||||
'Whoops\\Module' => $vendorDir . '/filp/whoops/src/deprecated/Zend/Module.php',
|
'Whoops\\Module' => $vendorDir . '/filp/whoops/src/deprecated/Zend/Module.php',
|
||||||
'Whoops\\Provider\\Zend\\ExceptionStrategy' => $vendorDir . '/filp/whoops/src/deprecated/Zend/ExceptionStrategy.php',
|
'Whoops\\Provider\\Zend\\ExceptionStrategy' => $vendorDir . '/filp/whoops/src/deprecated/Zend/ExceptionStrategy.php',
|
||||||
'Whoops\\Provider\\Zend\\RouteNotFoundStrategy' => $vendorDir . '/filp/whoops/src/deprecated/Zend/RouteNotFoundStrategy.php',
|
'Whoops\\Provider\\Zend\\RouteNotFoundStrategy' => $vendorDir . '/filp/whoops/src/deprecated/Zend/RouteNotFoundStrategy.php',
|
||||||
|
'ntlm_sasl_client_class' => $vendorDir . '/phpmailer/phpmailer/extras/ntlm_sasl_client.php',
|
||||||
|
'phpmailerException' => $vendorDir . '/phpmailer/phpmailer/class.phpmailer.php',
|
||||||
);
|
);
|
||||||
|
34
vendor/composer/autoload_files.php
vendored
34
vendor/composer/autoload_files.php
vendored
@@ -6,21 +6,21 @@ $vendorDir = dirname(dirname(__FILE__));
|
|||||||
$baseDir = dirname($vendorDir);
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
$vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
|
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||||
$vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
|
'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
|
||||||
$vendorDir . '/guzzlehttp/promises/src/functions_include.php',
|
'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
|
||||||
$vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
|
'37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
|
||||||
$vendorDir . '/symfony/var-dumper/Resources/functions/dump.php',
|
'667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php',
|
||||||
$vendorDir . '/mtdowling/jmespath.php/src/JmesPath.php',
|
'b067bc7112e384b61c701452d53a14a8' => $vendorDir . '/mtdowling/jmespath.php/src/JmesPath.php',
|
||||||
$vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php',
|
'2c102faa651ef8ea5874edb585946bce' => $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php',
|
||||||
$vendorDir . '/aws/aws-sdk-php/src/functions.php',
|
'8a9dc1de0ca7e01f3e08231539562f61' => $vendorDir . '/aws/aws-sdk-php/src/functions.php',
|
||||||
$vendorDir . '/phpseclib/phpseclib/phpseclib/Crypt/Random.php',
|
'3919eeb97e98d4648304477f8ef734ba' => $vendorDir . '/phpseclib/phpseclib/phpseclib/Crypt/Random.php',
|
||||||
$vendorDir . '/symfony/polyfill-php56/bootstrap.php',
|
'bd9634f2d41831496de0d3dfe4c94881' => $vendorDir . '/symfony/polyfill-php56/bootstrap.php',
|
||||||
$vendorDir . '/paragonie/random_compat/lib/random.php',
|
'5255c38a0faeba867671b61dfda6d864' => $vendorDir . '/paragonie/random_compat/lib/random.php',
|
||||||
$vendorDir . '/psy/psysh/src/Psy/functions.php',
|
'e7223560d890eab89cda23685e711e2c' => $vendorDir . '/psy/psysh/src/Psy/functions.php',
|
||||||
$vendorDir . '/illuminate/html/helpers.php',
|
'752af1c2bdb339e8474c3c31b22b7d54' => $vendorDir . '/illuminate/html/helpers.php',
|
||||||
$vendorDir . '/propaganistas/laravel-phone/src/helpers.php',
|
'f0906e6318348a765ffb6eb24e0d0938' => $vendorDir . '/laravel/framework/src/Illuminate/Foundation/helpers.php',
|
||||||
$vendorDir . '/laravel/framework/src/Illuminate/Foundation/helpers.php',
|
'58571171fd5812e6e447dce228f52f4d' => $vendorDir . '/laravel/framework/src/Illuminate/Support/helpers.php',
|
||||||
$vendorDir . '/laravel/framework/src/Illuminate/Support/helpers.php',
|
'017b24472353920ed42bb364f7653c43' => $vendorDir . '/propaganistas/laravel-phone/src/helpers.php',
|
||||||
$vendorDir . '/barryvdh/laravel-debugbar/src/helpers.php',
|
'4a1f389d6ce373bda9e57857d3b61c84' => $vendorDir . '/barryvdh/laravel-debugbar/src/helpers.php',
|
||||||
);
|
);
|
||||||
|
2
vendor/composer/autoload_namespaces.php
vendored
2
vendor/composer/autoload_namespaces.php
vendored
@@ -21,7 +21,6 @@ return array(
|
|||||||
'Net' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
|
'Net' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
|
||||||
'Namshi\\JOSE' => array($vendorDir . '/namshi/jose/src'),
|
'Namshi\\JOSE' => array($vendorDir . '/namshi/jose/src'),
|
||||||
'Mremi\\UrlShortener' => array($vendorDir . '/mremi/url-shortener/src'),
|
'Mremi\\UrlShortener' => array($vendorDir . '/mremi/url-shortener/src'),
|
||||||
'MaxMind' => array($vendorDir . '/maxmind-db/reader/src'),
|
|
||||||
'Math' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
|
'Math' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
|
||||||
'Maatwebsite\\Excel\\' => array($vendorDir . '/maatwebsite/excel/src'),
|
'Maatwebsite\\Excel\\' => array($vendorDir . '/maatwebsite/excel/src'),
|
||||||
'JakubOnderka\\PhpConsoleHighlighter' => array($vendorDir . '/jakub-onderka/php-console-highlighter/src'),
|
'JakubOnderka\\PhpConsoleHighlighter' => array($vendorDir . '/jakub-onderka/php-console-highlighter/src'),
|
||||||
@@ -30,7 +29,6 @@ return array(
|
|||||||
'Guzzle' => array($vendorDir . '/guzzle/guzzle/src'),
|
'Guzzle' => array($vendorDir . '/guzzle/guzzle/src'),
|
||||||
'ForceUTF8\\' => array($vendorDir . '/neitanod/forceutf8/src'),
|
'ForceUTF8\\' => array($vendorDir . '/neitanod/forceutf8/src'),
|
||||||
'File' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
|
'File' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
|
||||||
'Fetch' => array($vendorDir . '/tedivm/fetch/src'),
|
|
||||||
'Doctrine\\Common\\Inflector\\' => array($vendorDir . '/doctrine/inflector/lib'),
|
'Doctrine\\Common\\Inflector\\' => array($vendorDir . '/doctrine/inflector/lib'),
|
||||||
'Diff' => array($vendorDir . '/phpspec/php-diff/lib'),
|
'Diff' => array($vendorDir . '/phpspec/php-diff/lib'),
|
||||||
'Davibennun\\LaravelPushNotification' => array($vendorDir . '/davibennun/laravel-push-notification/src'),
|
'Davibennun\\LaravelPushNotification' => array($vendorDir . '/davibennun/laravel-push-notification/src'),
|
||||||
|
5
vendor/composer/autoload_psr4.php
vendored
5
vendor/composer/autoload_psr4.php
vendored
@@ -18,7 +18,6 @@ return array(
|
|||||||
'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
|
'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
|
||||||
'Vsmoraes\\Pdf\\' => array($vendorDir . '/vsmoraes/laravel-pdf/src'),
|
'Vsmoraes\\Pdf\\' => array($vendorDir . '/vsmoraes/laravel-pdf/src'),
|
||||||
'Unisharp\\Laravelfilemanager\\' => array($vendorDir . '/unisharp/laravel-filemanager/src'),
|
'Unisharp\\Laravelfilemanager\\' => array($vendorDir . '/unisharp/laravel-filemanager/src'),
|
||||||
'Unisharp\\Ckeditor\\' => array($vendorDir . '/unisharp/laravel-ckeditor'),
|
|
||||||
'Tymon\\JWTAuth\\' => array($vendorDir . '/tymon/jwt-auth/src'),
|
'Tymon\\JWTAuth\\' => array($vendorDir . '/tymon/jwt-auth/src'),
|
||||||
'Torann\\GeoIP\\' => array($vendorDir . '/torann/geoip/src/Torann/GeoIP'),
|
'Torann\\GeoIP\\' => array($vendorDir . '/torann/geoip/src/Torann/GeoIP'),
|
||||||
'TijsVerkoyen\\CssToInlineStyles\\' => array($vendorDir . '/tijsverkoyen/css-to-inline-styles/src'),
|
'TijsVerkoyen\\CssToInlineStyles\\' => array($vendorDir . '/tijsverkoyen/css-to-inline-styles/src'),
|
||||||
@@ -48,9 +47,9 @@ return array(
|
|||||||
'Propaganistas\\LaravelPhone\\' => array($vendorDir . '/propaganistas/laravel-phone/src'),
|
'Propaganistas\\LaravelPhone\\' => array($vendorDir . '/propaganistas/laravel-phone/src'),
|
||||||
'Predis\\' => array($vendorDir . '/predis/predis/src'),
|
'Predis\\' => array($vendorDir . '/predis/predis/src'),
|
||||||
'PhpParser\\' => array($vendorDir . '/nikic/php-parser/lib/PhpParser'),
|
'PhpParser\\' => array($vendorDir . '/nikic/php-parser/lib/PhpParser'),
|
||||||
|
'PhpImap\\' => array($vendorDir . '/php-imap/php-imap/src/PhpImap'),
|
||||||
'Nicolaslopezj\\Searchable\\' => array($vendorDir . '/nicolaslopezj/searchable/src'),
|
'Nicolaslopezj\\Searchable\\' => array($vendorDir . '/nicolaslopezj/searchable/src'),
|
||||||
'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
|
'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
|
||||||
'MaxMind\\' => array($vendorDir . '/maxmind/web-service-common/src'),
|
|
||||||
'League\\OAuth1\\' => array($vendorDir . '/league/oauth1-client/src'),
|
'League\\OAuth1\\' => array($vendorDir . '/league/oauth1-client/src'),
|
||||||
'League\\Flysystem\\' => array($vendorDir . '/league/flysystem/src'),
|
'League\\Flysystem\\' => array($vendorDir . '/league/flysystem/src'),
|
||||||
'Laravel\\Socialite\\' => array($vendorDir . '/laravel/socialite/src'),
|
'Laravel\\Socialite\\' => array($vendorDir . '/laravel/socialite/src'),
|
||||||
@@ -66,12 +65,10 @@ return array(
|
|||||||
'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),
|
'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),
|
||||||
'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),
|
'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),
|
||||||
'Giggsey\\Locale\\' => array($vendorDir . '/giggsey/locale/src'),
|
'Giggsey\\Locale\\' => array($vendorDir . '/giggsey/locale/src'),
|
||||||
'GeoIp2\\' => array($vendorDir . '/geoip2/geoip2/src'),
|
|
||||||
'Dotenv\\' => array($vendorDir . '/vlucas/phpdotenv/src'),
|
'Dotenv\\' => array($vendorDir . '/vlucas/phpdotenv/src'),
|
||||||
'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
|
'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
|
||||||
'DebugBar\\' => array($vendorDir . '/maximebf/debugbar/src/DebugBar'),
|
'DebugBar\\' => array($vendorDir . '/maximebf/debugbar/src/DebugBar'),
|
||||||
'DaveJamesMiller\\Breadcrumbs\\' => array($vendorDir . '/davejamesmiller/laravel-breadcrumbs/src'),
|
'DaveJamesMiller\\Breadcrumbs\\' => array($vendorDir . '/davejamesmiller/laravel-breadcrumbs/src'),
|
||||||
'Composer\\CaBundle\\' => array($vendorDir . '/composer/ca-bundle/src'),
|
|
||||||
'Collective\\Bus\\' => array($vendorDir . '/laravelcollective/bus/src'),
|
'Collective\\Bus\\' => array($vendorDir . '/laravelcollective/bus/src'),
|
||||||
'ClassPreloader\\' => array($vendorDir . '/classpreloader/classpreloader/src'),
|
'ClassPreloader\\' => array($vendorDir . '/classpreloader/classpreloader/src'),
|
||||||
'Carbon\\' => array($vendorDir . '/nesbot/carbon/src/Carbon'),
|
'Carbon\\' => array($vendorDir . '/nesbot/carbon/src/Carbon'),
|
||||||
|
21
vendor/composer/autoload_real.php
vendored
21
vendor/composer/autoload_real.php
vendored
@@ -27,6 +27,12 @@ class ComposerAutoloaderInit1bacc9bd2a82216bf11bc15e6aee6c79
|
|||||||
array_push($includePaths, get_include_path());
|
array_push($includePaths, get_include_path());
|
||||||
set_include_path(join(PATH_SEPARATOR, $includePaths));
|
set_include_path(join(PATH_SEPARATOR, $includePaths));
|
||||||
|
|
||||||
|
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
|
||||||
|
if ($useStaticLoader) {
|
||||||
|
require_once __DIR__ . '/autoload_static.php';
|
||||||
|
|
||||||
|
call_user_func(\Composer\Autoload\ComposerStaticInit1bacc9bd2a82216bf11bc15e6aee6c79::getInitializer($loader));
|
||||||
|
} else {
|
||||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||||
foreach ($map as $namespace => $path) {
|
foreach ($map as $namespace => $path) {
|
||||||
$loader->set($namespace, $path);
|
$loader->set($namespace, $path);
|
||||||
@@ -41,19 +47,28 @@ class ComposerAutoloaderInit1bacc9bd2a82216bf11bc15e6aee6c79
|
|||||||
if ($classMap) {
|
if ($classMap) {
|
||||||
$loader->addClassMap($classMap);
|
$loader->addClassMap($classMap);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$loader->register(true);
|
$loader->register(true);
|
||||||
|
|
||||||
|
if ($useStaticLoader) {
|
||||||
|
$includeFiles = Composer\Autoload\ComposerStaticInit1bacc9bd2a82216bf11bc15e6aee6c79::$files;
|
||||||
|
} else {
|
||||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||||
foreach ($includeFiles as $file) {
|
}
|
||||||
composerRequire1bacc9bd2a82216bf11bc15e6aee6c79($file);
|
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||||
|
composerRequire1bacc9bd2a82216bf11bc15e6aee6c79($fileIdentifier, $file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function composerRequire1bacc9bd2a82216bf11bc15e6aee6c79($file)
|
function composerRequire1bacc9bd2a82216bf11bc15e6aee6c79($fileIdentifier, $file)
|
||||||
{
|
{
|
||||||
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||||
require $file;
|
require $file;
|
||||||
|
|
||||||
|
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
4261
vendor/composer/autoload_static.php
vendored
4261
vendor/composer/autoload_static.php
vendored
File diff suppressed because it is too large
Load Diff
19
vendor/composer/ca-bundle/LICENSE
vendored
19
vendor/composer/ca-bundle/LICENSE
vendored
@@ -1,19 +0,0 @@
|
|||||||
Copyright (C) 2016 Composer
|
|
||||||
|
|
||||||
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.
|
|
70
vendor/composer/ca-bundle/README.md
vendored
70
vendor/composer/ca-bundle/README.md
vendored
@@ -1,70 +0,0 @@
|
|||||||
composer/ca-bundle
|
|
||||||
==================
|
|
||||||
|
|
||||||
Small utility library that lets you find a path to the system CA bundle,
|
|
||||||
and includes a fallback to the Mozilla CA bundle.
|
|
||||||
|
|
||||||
Originally written as part of [composer/composer](https://github.com/composer/composer),
|
|
||||||
now extracted and made available as a stand-alone library.
|
|
||||||
|
|
||||||
|
|
||||||
Installation
|
|
||||||
------------
|
|
||||||
|
|
||||||
Install the latest version with:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ composer require composer/ca-bundle
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
Requirements
|
|
||||||
------------
|
|
||||||
|
|
||||||
* PHP 5.3.2 is required but using the latest version of PHP is highly recommended.
|
|
||||||
|
|
||||||
|
|
||||||
Basic usage
|
|
||||||
-----------
|
|
||||||
|
|
||||||
# `Composer\CaBundle\CaBundle`
|
|
||||||
|
|
||||||
- `CaBundle::getSystemCaRootBundlePath()`: Returns the system CA bundle path, or a path to the bundled one as fallback
|
|
||||||
- `CaBundle::getBundledCaBundlePath()`: Returns the path to the bundled CA file
|
|
||||||
- `CaBundle::validateCaFile($filename)`: Validates a CA file using opensl_x509_parse only if it is safe to use
|
|
||||||
- `CaBundle::isOpensslParseSafe()`: Test if it is safe to use the PHP function openssl_x509_parse()
|
|
||||||
- `CaBundle::reset()`: Resets the static caches
|
|
||||||
|
|
||||||
|
|
||||||
## To use with curl
|
|
||||||
|
|
||||||
```php
|
|
||||||
$curl = curl_init("https://example.org/");
|
|
||||||
curl_setopt($curl, CURLOPT_CAINFO, \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath());
|
|
||||||
$result = curl_exec($curl);
|
|
||||||
```
|
|
||||||
|
|
||||||
## To use with php streams
|
|
||||||
|
|
||||||
```php
|
|
||||||
$opts = array(
|
|
||||||
'http' => array(
|
|
||||||
'method' => "GET"
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
$caPath = \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath();
|
|
||||||
if (is_dir($caPath)) {
|
|
||||||
$opts['ssl']['capath'] = $caPath;
|
|
||||||
} else {
|
|
||||||
$opts['ssl']['cafile'] = $caPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
$context = stream_context_create($opts);
|
|
||||||
$result = file_get_contents('https://example.com', false, $context);
|
|
||||||
```
|
|
||||||
|
|
||||||
License
|
|
||||||
-------
|
|
||||||
|
|
||||||
composer/ca-bundle is licensed under the MIT License, see the LICENSE file for details.
|
|
51
vendor/composer/ca-bundle/composer.json
vendored
51
vendor/composer/ca-bundle/composer.json
vendored
@@ -1,51 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "composer/ca-bundle",
|
|
||||||
"description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.",
|
|
||||||
"type": "library",
|
|
||||||
"license": "MIT",
|
|
||||||
"keywords": [
|
|
||||||
"cabundle",
|
|
||||||
"cacert",
|
|
||||||
"certificate",
|
|
||||||
"ssl",
|
|
||||||
"tls"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Jordi Boggiano",
|
|
||||||
"email": "j.boggiano@seld.be",
|
|
||||||
"homepage": "http://seld.be"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"support": {
|
|
||||||
"irc": "irc://irc.freenode.org/composer",
|
|
||||||
"issues": "https://github.com/composer/ca-bundle/issues"
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"ext-openssl": "*",
|
|
||||||
"ext-pcre": "*",
|
|
||||||
"php": "^5.3.2 || ^7.0"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"psr/log": "^1.0",
|
|
||||||
"symfony/process": "^2.5 || ^3.0"
|
|
||||||
},
|
|
||||||
"suggest": {
|
|
||||||
"symfony/process": "This is necessary to reliably check whether openssl_x509_parse is vulnerable on older php versions, but can be ignored on PHP 5.5.6+"
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Composer\\CaBundle\\": "src"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload-dev": {
|
|
||||||
"psr-4": {
|
|
||||||
"Composer\\CaBundle\\": "tests"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "1.x-dev"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
3884
vendor/composer/ca-bundle/res/cacert.pem
vendored
3884
vendor/composer/ca-bundle/res/cacert.pem
vendored
File diff suppressed because it is too large
Load Diff
291
vendor/composer/ca-bundle/src/CaBundle.php
vendored
291
vendor/composer/ca-bundle/src/CaBundle.php
vendored
@@ -1,291 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of composer/ca-bundle.
|
|
||||||
*
|
|
||||||
* (c) Composer <https://github.com/composer>
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please view
|
|
||||||
* the LICENSE file that was distributed with this source code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Composer\CaBundle;
|
|
||||||
|
|
||||||
use Psr\Log\LoggerInterface;
|
|
||||||
use Symfony\Component\Process\PhpProcess;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Chris Smith <chris@cs278.org>
|
|
||||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
|
||||||
*/
|
|
||||||
class CaBundle
|
|
||||||
{
|
|
||||||
private static $caPath;
|
|
||||||
private static $caFileValidity = array();
|
|
||||||
private static $useOpensslParse;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the system CA bundle path, or a path to the bundled one
|
|
||||||
*
|
|
||||||
* This method was adapted from Sslurp.
|
|
||||||
* https://github.com/EvanDotPro/Sslurp
|
|
||||||
*
|
|
||||||
* (c) Evan Coury <me@evancoury.com>
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please see below:
|
|
||||||
*
|
|
||||||
* Copyright (c) 2013, Evan Coury
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* * Redistributions of source code must retain the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
* @param LoggerInterface $logger optional logger for information about which CA files were loaded
|
|
||||||
* @return string path to a CA bundle file or directory
|
|
||||||
*/
|
|
||||||
public static function getSystemCaRootBundlePath(LoggerInterface $logger = null)
|
|
||||||
{
|
|
||||||
if (self::$caPath !== null) {
|
|
||||||
return self::$caPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If SSL_CERT_FILE env variable points to a valid certificate/bundle, use that.
|
|
||||||
// This mimics how OpenSSL uses the SSL_CERT_FILE env variable.
|
|
||||||
$envCertFile = getenv('SSL_CERT_FILE');
|
|
||||||
if ($envCertFile && is_readable($envCertFile) && static::validateCaFile($envCertFile, $logger)) {
|
|
||||||
return self::$caPath = $envCertFile;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If SSL_CERT_DIR env variable points to a valid certificate/bundle, use that.
|
|
||||||
// This mimics how OpenSSL uses the SSL_CERT_FILE env variable.
|
|
||||||
$envCertDir = getenv('SSL_CERT_DIR');
|
|
||||||
if ($envCertDir && is_dir($envCertDir) && is_readable($envCertDir)) {
|
|
||||||
return self::$caPath = $envCertDir;
|
|
||||||
}
|
|
||||||
|
|
||||||
$configured = ini_get('openssl.cafile');
|
|
||||||
if ($configured && strlen($configured) > 0 && is_readable($configured) && static::validateCaFile($configured, $logger)) {
|
|
||||||
return self::$caPath = $configured;
|
|
||||||
}
|
|
||||||
|
|
||||||
$configured = ini_get('openssl.capath');
|
|
||||||
if ($configured && is_dir($configured) && is_readable($configured)) {
|
|
||||||
return self::$caPath = $configured;
|
|
||||||
}
|
|
||||||
|
|
||||||
$caBundlePaths = array(
|
|
||||||
'/etc/pki/tls/certs/ca-bundle.crt', // Fedora, RHEL, CentOS (ca-certificates package)
|
|
||||||
'/etc/ssl/certs/ca-certificates.crt', // Debian, Ubuntu, Gentoo, Arch Linux (ca-certificates package)
|
|
||||||
'/etc/ssl/ca-bundle.pem', // SUSE, openSUSE (ca-certificates package)
|
|
||||||
'/usr/local/share/certs/ca-root-nss.crt', // FreeBSD (ca_root_nss_package)
|
|
||||||
'/usr/ssl/certs/ca-bundle.crt', // Cygwin
|
|
||||||
'/opt/local/share/curl/curl-ca-bundle.crt', // OS X macports, curl-ca-bundle package
|
|
||||||
'/usr/local/share/curl/curl-ca-bundle.crt', // Default cURL CA bunde path (without --with-ca-bundle option)
|
|
||||||
'/usr/share/ssl/certs/ca-bundle.crt', // Really old RedHat?
|
|
||||||
'/etc/ssl/cert.pem', // OpenBSD
|
|
||||||
'/usr/local/etc/ssl/cert.pem', // FreeBSD 10.x
|
|
||||||
'/usr/local/etc/openssl/cert.pem', // OS X homebrew, openssl package
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach ($caBundlePaths as $caBundle) {
|
|
||||||
if (@is_readable($caBundle) && static::validateCaFile($caBundle, $logger)) {
|
|
||||||
return self::$caPath = $caBundle;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($caBundlePaths as $caBundle) {
|
|
||||||
$caBundle = dirname($caBundle);
|
|
||||||
if (@is_dir($caBundle) && glob($caBundle.'/*')) {
|
|
||||||
return self::$caPath = $caBundle;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::$caPath = static::getBundledCaBundlePath(); // Bundled CA file, last resort
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the path to the bundled CA file
|
|
||||||
*
|
|
||||||
* In case you don't want to trust the user or the system, you can use this directly
|
|
||||||
*
|
|
||||||
* @return string path to a CA bundle file
|
|
||||||
*/
|
|
||||||
public static function getBundledCaBundlePath()
|
|
||||||
{
|
|
||||||
return __DIR__.'/../res/cacert.pem';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Validates a CA file using opensl_x509_parse only if it is safe to use
|
|
||||||
*
|
|
||||||
* @param string $filename
|
|
||||||
* @param LoggerInterface $logger optional logger for information about which CA files were loaded
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public static function validateCaFile($filename, LoggerInterface $logger = null)
|
|
||||||
{
|
|
||||||
static $warned = false;
|
|
||||||
|
|
||||||
if (isset(self::$caFileValidity[$filename])) {
|
|
||||||
return self::$caFileValidity[$filename];
|
|
||||||
}
|
|
||||||
|
|
||||||
$contents = file_get_contents($filename);
|
|
||||||
|
|
||||||
// assume the CA is valid if php is vulnerable to
|
|
||||||
// https://www.sektioneins.de/advisories/advisory-012013-php-openssl_x509_parse-memory-corruption-vulnerability.html
|
|
||||||
if (!static::isOpensslParseSafe()) {
|
|
||||||
if (!$warned && $logger) {
|
|
||||||
$logger->warning(sprintf(
|
|
||||||
'Your version of PHP, %s, is affected by CVE-2013-6420 and cannot safely perform certificate validation, we strongly suggest you upgrade.',
|
|
||||||
PHP_VERSION
|
|
||||||
));
|
|
||||||
$warned = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$isValid = !empty($contents);
|
|
||||||
} else {
|
|
||||||
$isValid = (bool) openssl_x509_parse($contents);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($logger) {
|
|
||||||
$logger->debug('Checked CA file '.realpath($filename).': '.($isValid ? 'valid' : 'invalid'));
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::$caFileValidity[$filename] = $isValid;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test if it is safe to use the PHP function openssl_x509_parse().
|
|
||||||
*
|
|
||||||
* This checks if OpenSSL extensions is vulnerable to remote code execution
|
|
||||||
* via the exploit documented as CVE-2013-6420.
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public static function isOpensslParseSafe()
|
|
||||||
{
|
|
||||||
if (null !== self::$useOpensslParse) {
|
|
||||||
return self::$useOpensslParse;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (PHP_VERSION_ID >= 50600) {
|
|
||||||
return self::$useOpensslParse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Vulnerable:
|
|
||||||
// PHP 5.3.0 - PHP 5.3.27
|
|
||||||
// PHP 5.4.0 - PHP 5.4.22
|
|
||||||
// PHP 5.5.0 - PHP 5.5.6
|
|
||||||
if (
|
|
||||||
(PHP_VERSION_ID < 50400 && PHP_VERSION_ID >= 50328)
|
|
||||||
|| (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423)
|
|
||||||
|| (PHP_VERSION_ID < 50600 && PHP_VERSION_ID >= 50507)
|
|
||||||
) {
|
|
||||||
// This version of PHP has the fix for CVE-2013-6420 applied.
|
|
||||||
return self::$useOpensslParse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
|
|
||||||
// Windows is probably insecure in this case.
|
|
||||||
return self::$useOpensslParse = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$compareDistroVersionPrefix = function ($prefix, $fixedVersion) {
|
|
||||||
$regex = '{^'.preg_quote($prefix).'([0-9]+)$}';
|
|
||||||
|
|
||||||
if (preg_match($regex, PHP_VERSION, $m)) {
|
|
||||||
return ((int) $m[1]) >= $fixedVersion;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Hard coded list of PHP distributions with the fix backported.
|
|
||||||
if (
|
|
||||||
$compareDistroVersionPrefix('5.3.3-7+squeeze', 18) // Debian 6 (Squeeze)
|
|
||||||
|| $compareDistroVersionPrefix('5.4.4-14+deb7u', 7) // Debian 7 (Wheezy)
|
|
||||||
|| $compareDistroVersionPrefix('5.3.10-1ubuntu3.', 9) // Ubuntu 12.04 (Precise)
|
|
||||||
) {
|
|
||||||
return self::$useOpensslParse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Symfony Process component is missing so we assume it is unsafe at this point
|
|
||||||
if (!class_exists('Symfony\Component\Process\PhpProcess')) {
|
|
||||||
return self::$useOpensslParse = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This is where things get crazy, because distros backport security
|
|
||||||
// fixes the chances are on NIX systems the fix has been applied but
|
|
||||||
// it's not possible to verify that from the PHP version.
|
|
||||||
//
|
|
||||||
// To verify exec a new PHP process and run the issue testcase with
|
|
||||||
// known safe input that replicates the bug.
|
|
||||||
|
|
||||||
// Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415
|
|
||||||
// changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593
|
|
||||||
$cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K';
|
|
||||||
$script = <<<'EOT'
|
|
||||||
|
|
||||||
error_reporting(-1);
|
|
||||||
$info = openssl_x509_parse(base64_decode('%s'));
|
|
||||||
var_dump(PHP_VERSION, $info['issuer']['emailAddress'], $info['validFrom_time_t']);
|
|
||||||
|
|
||||||
EOT;
|
|
||||||
$script = '<'."?php\n".sprintf($script, $cert);
|
|
||||||
|
|
||||||
try {
|
|
||||||
$process = new PhpProcess($script);
|
|
||||||
$process->mustRun();
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
// In the case of any exceptions just accept it is not possible to
|
|
||||||
// determine the safety of openssl_x509_parse and bail out.
|
|
||||||
return self::$useOpensslParse = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$output = preg_split('{\r?\n}', trim($process->getOutput()));
|
|
||||||
$errorOutput = trim($process->getErrorOutput());
|
|
||||||
|
|
||||||
if (
|
|
||||||
count($output) === 3
|
|
||||||
&& $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION)
|
|
||||||
&& $output[1] === 'string(27) "stefan.esser@sektioneins.de"'
|
|
||||||
&& $output[2] === 'int(-1)'
|
|
||||||
&& preg_match('{openssl_x509_parse\(\): illegal (?:ASN1 data type for|length in) timestamp in - on line \d+}', $errorOutput)
|
|
||||||
) {
|
|
||||||
// This PHP has the fix backported probably by a distro security team.
|
|
||||||
return self::$useOpensslParse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::$useOpensslParse = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Resets the static caches
|
|
||||||
*/
|
|
||||||
public static function reset()
|
|
||||||
{
|
|
||||||
self::$caFileValidity = array();
|
|
||||||
self::$caPath = null;
|
|
||||||
self::$useOpensslParse = null;
|
|
||||||
}
|
|
||||||
}
|
|
2811
vendor/composer/installed.json
vendored
2811
vendor/composer/installed.json
vendored
File diff suppressed because it is too large
Load Diff
3
vendor/geoip2/geoip2/.gitmodules
vendored
3
vendor/geoip2/geoip2/.gitmodules
vendored
@@ -1,3 +0,0 @@
|
|||||||
[submodule "maxmind-db"]
|
|
||||||
path = maxmind-db
|
|
||||||
url = git://github.com/maxmind/MaxMind-DB.git
|
|
212
vendor/geoip2/geoip2/CHANGELOG.md
vendored
212
vendor/geoip2/geoip2/CHANGELOG.md
vendored
@@ -1,212 +0,0 @@
|
|||||||
CHANGELOG
|
|
||||||
=========
|
|
||||||
|
|
||||||
2.4.2 (2016-08-17)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Updated documentation to clarify what the accuracy radius refers to.
|
|
||||||
* Upgraded `maxmind/web-service-common` to 0.3.0. This version uses
|
|
||||||
`composer/ca-bundle` rather than our own CA bundle. Fixes #75.
|
|
||||||
* Improved PHP documentation generation.
|
|
||||||
|
|
||||||
2.4.1 (2016-06-10)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Corrected type annotations in documentation. GitHub #66.
|
|
||||||
* Updated documentation to reflect that the accuracy radius is now included
|
|
||||||
in City.
|
|
||||||
* Upgraded web service client, which supports setting a proxy. GitHub #59.
|
|
||||||
|
|
||||||
2.4.0 (2016-04-15)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Added support for the GeoIP2 Enterprise database.
|
|
||||||
|
|
||||||
2.3.3 (2015-09-24)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Corrected case on `JsonSerializable` interface. Reported by Axel Etcheverry.
|
|
||||||
GitHub #56.
|
|
||||||
|
|
||||||
2.3.2 (2015-09-23)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* `JsonSerializable` compatibility interface was moved to `GeoIp2\Compat`
|
|
||||||
rather than the global namespace to prevent autoloading issues. Reported by
|
|
||||||
Tomas Buteler. GitHub #54.
|
|
||||||
* Missing documentation for the `$postal` property was added to the
|
|
||||||
`GeoIp2\Model\City` class. Fix by Roy Sindre Norangshol. GitHub #51.
|
|
||||||
* In the Phar distribution, source files for this module no longer have their
|
|
||||||
documentation stripped, allowing IDE introspection to work properly.
|
|
||||||
Reported by Dominic Black. GitHub #52.
|
|
||||||
|
|
||||||
2.3.1 (2015-06-30)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Updated `maxmind/web-service-common` to version with fixes for PHP 5.3 and
|
|
||||||
5.4.
|
|
||||||
|
|
||||||
2.3.0 (2015-06-29)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Support for demographics fields `averageIncome` and `populationDensity` in
|
|
||||||
the `Location` record, returned by the Insights endpoint.
|
|
||||||
* The `isAnonymousProxy` and `isSatelliteProvider` properties on
|
|
||||||
`GeoIP2\Record\Traits` have been deprecated. Please use our [GeoIP2
|
|
||||||
Anonymous IP database](https://www.maxmind.com/en/geoip2-anonymous-ip-database)
|
|
||||||
to determine whether an IP address is used by an anonymizing service.
|
|
||||||
|
|
||||||
2.2.0-beta1 (2015-06-09)
|
|
||||||
------------------------
|
|
||||||
|
|
||||||
* Typo fix in documentation.
|
|
||||||
|
|
||||||
2.2.0-alpha2 (2015-06-01)
|
|
||||||
-------------------------
|
|
||||||
|
|
||||||
* `maxmind-ws/web-service-common` was renamed to `maxmind/web-service-common`.
|
|
||||||
|
|
||||||
2.2.0-alpha1 (2015-05-22)
|
|
||||||
-------------------------
|
|
||||||
|
|
||||||
* The library no longer uses Guzzle and instead uses curl directly.
|
|
||||||
* Support for `timeout` and `connectTimout` were added to the `$options` array
|
|
||||||
passed to the `GeoIp2\WebService\Client` constructor. Pull request by Will
|
|
||||||
Bradley. GitHub #36.
|
|
||||||
|
|
||||||
2.1.1 (2014-12-03)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* The 2.1.0 Phar builds included a shebang line, causing issues when loading
|
|
||||||
it as a library. This has been corrected. GitHub #33.
|
|
||||||
|
|
||||||
2.1.0 (2014-10-29)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Update ApiGen dependency to version that isn't broken on case sensitive
|
|
||||||
file systems.
|
|
||||||
* Added support for the GeoIP2 Anonymous IP database. The
|
|
||||||
`GeoIP2\Database\Reader` class now has an `anonymousIp` method which returns
|
|
||||||
a `GeoIP2\Model\AnonymousIp` object.
|
|
||||||
* Boolean attributes like those in the `GeoIP2\Record\Traits` class now return
|
|
||||||
`false` instead of `null` when they were not true.
|
|
||||||
|
|
||||||
2.0.0 (2014-09-22)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* First production release.
|
|
||||||
|
|
||||||
0.9.0 (2014-09-15)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* IMPORTANT: The deprecated `omni()` and `cityIspOrg()` methods have been
|
|
||||||
removed from `GeoIp2\WebService\Client`.
|
|
||||||
|
|
||||||
0.8.1 (2014-09-12)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* The check added to the `GeoIP2\Database\Reader` lookup methods in 0.8.0 did
|
|
||||||
not work with the GeoIP2 City Database Subset by Continent with World
|
|
||||||
Countries. This has been fixed. Fixes GitHub issue #23.
|
|
||||||
|
|
||||||
0.8.0 (2014-09-10)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* The `GeoIp2\Database\Reader` lookup methods (e.g., `city()`, `isp()`) now
|
|
||||||
throw a `BadMethodCallException` if they are used with a database that
|
|
||||||
does not match the method. In particular, doing a `city()` lookup on a
|
|
||||||
GeoIP2 Country database will result in an exception, and vice versa.
|
|
||||||
* A `metadata()` method has been added to the `GeoIP2\Database\Reader` class.
|
|
||||||
This returns a `MaxMind\Db\Reader\Metadata` class with information about the
|
|
||||||
database.
|
|
||||||
* The name attribute was missing from the RepresentedCountry class.
|
|
||||||
|
|
||||||
0.7.0 (2014-07-22)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* The web service client API has been updated for the v2.1 release of the web
|
|
||||||
service. In particular, the `cityIspOrg` and `omni` methods on
|
|
||||||
`GeoIp2\WebService\Client` should be considered deprecated. The `city`
|
|
||||||
method now provides all of the data formerly provided by `cityIspOrg`, and
|
|
||||||
the `omni` method has been replaced by the `insights` method.
|
|
||||||
* Support was added for GeoIP2 Connection Type, Domain and ISP databases.
|
|
||||||
|
|
||||||
|
|
||||||
0.6.3 (2014-05-12)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* With the previous Phar builds, some users received `phar error: invalid url
|
|
||||||
or non-existent phar` errors. The correct alias is now used for the Phar,
|
|
||||||
and this should no longer be an issue.
|
|
||||||
|
|
||||||
0.6.2 (2014-05-08)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* The Phar build was broken with Guzzle 3.9.0+. This has been fixed.
|
|
||||||
|
|
||||||
0.6.1 (2014-05-01)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* This API now officially supports HHVM.
|
|
||||||
* The `maxmind-db/reader` dependency was updated to a version that does not
|
|
||||||
require BC Math.
|
|
||||||
* The Composer compatibility autoload rules are now targeted more narrowly.
|
|
||||||
* A `box.json` file is included to build a Phar package.
|
|
||||||
|
|
||||||
0.6.0 (2014-02-19)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* This API is now licensed under the Apache License, Version 2.0.
|
|
||||||
* Model and record classes now implement `JsonSerializable`.
|
|
||||||
* `isset` now works with model and record classes.
|
|
||||||
|
|
||||||
0.5.0 (2013-10-21)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Renamed $languages constructor parameters to $locales for both the Client
|
|
||||||
and Reader classes.
|
|
||||||
* Documentation and code clean-up (Ben Morel).
|
|
||||||
* Added the interface `GeoIp2\ProviderInterface`, which is implemented by both
|
|
||||||
`\GeoIp2\Database\Reader` and `\GeoIp2\WebService\Client`.
|
|
||||||
|
|
||||||
0.4.0 (2013-07-16)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* This is the first release with the GeoIP2 database reader. Please see the
|
|
||||||
`README.md` file and the `\GeoIp2\Database\Reader` class.
|
|
||||||
* The general exception classes were replaced with specific exception classes
|
|
||||||
representing particular types of errors, such as an authentication error.
|
|
||||||
|
|
||||||
0.3.0 (2013-07-12)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* In namespaces and class names, "GeoIP2" was renamed to "GeoIp2" to improve
|
|
||||||
consistency.
|
|
||||||
|
|
||||||
0.2.1 (2013-06-10)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* First official beta release.
|
|
||||||
* Documentation updates and corrections.
|
|
||||||
|
|
||||||
0.2.0 (2013-05-29)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* `GenericException` was renamed to `GeoIP2Exception`.
|
|
||||||
* We now support more languages. The new languages are de, es, fr, and pt-BR.
|
|
||||||
* The REST API now returns a record with data about your account. There is
|
|
||||||
a new `GeoIP\Records\MaxMind` class for this data.
|
|
||||||
* The `continentCode` attribute on `Continent` was renamed to `code`.
|
|
||||||
* Documentation updates.
|
|
||||||
|
|
||||||
0.1.1 (2013-05-14)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Updated Guzzle version requirement.
|
|
||||||
* Fixed Composer example in README.md.
|
|
||||||
|
|
||||||
|
|
||||||
0.1.0 (2013-05-13)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* Initial release.
|
|
202
vendor/geoip2/geoip2/LICENSE
vendored
202
vendor/geoip2/geoip2/LICENSE
vendored
@@ -1,202 +0,0 @@
|
|||||||
|
|
||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
383
vendor/geoip2/geoip2/README.md
vendored
383
vendor/geoip2/geoip2/README.md
vendored
@@ -1,383 +0,0 @@
|
|||||||
# GeoIP2 PHP API #
|
|
||||||
|
|
||||||
## Description ##
|
|
||||||
|
|
||||||
This package provides an API for the GeoIP2
|
|
||||||
[web services](http://dev.maxmind.com/geoip/geoip2/web-services) and
|
|
||||||
[databases](http://dev.maxmind.com/geoip/geoip2/downloadable). The API also
|
|
||||||
works with the free
|
|
||||||
[GeoLite2 databases](http://dev.maxmind.com/geoip/geoip2/geolite2/).
|
|
||||||
|
|
||||||
## Install via Composer ##
|
|
||||||
|
|
||||||
We recommend installing this package with [Composer](http://getcomposer.org/).
|
|
||||||
|
|
||||||
### Download Composer ###
|
|
||||||
|
|
||||||
To download Composer, run in the root directory of your project:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -sS https://getcomposer.org/installer | php
|
|
||||||
```
|
|
||||||
|
|
||||||
You should now have the file `composer.phar` in your project directory.
|
|
||||||
|
|
||||||
### Install Dependencies ###
|
|
||||||
|
|
||||||
Run in your project root:
|
|
||||||
|
|
||||||
```
|
|
||||||
php composer.phar require geoip2/geoip2:~2.0
|
|
||||||
```
|
|
||||||
|
|
||||||
You should now have the files `composer.json` and `composer.lock` as well as
|
|
||||||
the directory `vendor` in your project directory. If you use a version control
|
|
||||||
system, `composer.json` should be added to it.
|
|
||||||
|
|
||||||
### Require Autoloader ###
|
|
||||||
|
|
||||||
After installing the dependencies, you need to require the Composer autoloader
|
|
||||||
from your code:
|
|
||||||
|
|
||||||
```php
|
|
||||||
require 'vendor/autoload.php';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Install via Phar ##
|
|
||||||
|
|
||||||
Although we strongly recommend using Composer, we also provide a
|
|
||||||
[phar archive](http://php.net/manual/en/book.phar.php) containing all of the
|
|
||||||
dependencies for GeoIP2. Our latest phar archive is available on
|
|
||||||
[our releases page](https://github.com/maxmind/GeoIP2-php/releases).
|
|
||||||
|
|
||||||
To use the archive, just require it from your script:
|
|
||||||
|
|
||||||
```php
|
|
||||||
require 'geoip2.phar';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Optional C Extension ##
|
|
||||||
|
|
||||||
The [MaxMind DB API](https://github.com/maxmind/MaxMind-DB-Reader-php)
|
|
||||||
includes an optional C extension that you may install to dramatically increase
|
|
||||||
the performance of lookups in GeoIP2 or GeoLite2 databases. To install, please
|
|
||||||
follow the instructions included with that API.
|
|
||||||
|
|
||||||
The extension has no effect on web-service lookups.
|
|
||||||
|
|
||||||
## IP Geolocation Usage ##
|
|
||||||
|
|
||||||
IP geolocation is inherently imprecise. Locations are often near the center of
|
|
||||||
the population. Any location provided by a GeoIP2 database or web service
|
|
||||||
should not be used to identify a particular address or household.
|
|
||||||
|
|
||||||
## Database Reader ##
|
|
||||||
|
|
||||||
### Usage ###
|
|
||||||
|
|
||||||
To use this API, you must create a new `\GeoIp2\Database\Reader` object with
|
|
||||||
the path to the database file as the first argument to the constructor. You
|
|
||||||
may then call the method corresponding to the database you are using.
|
|
||||||
|
|
||||||
If the lookup succeeds, the method call will return a model class for the
|
|
||||||
record in the database. This model in turn contains multiple container
|
|
||||||
classes for the different parts of the data such as the city in which the
|
|
||||||
IP address is located.
|
|
||||||
|
|
||||||
If the record is not found, a `\GeoIp2\Exception\AddressNotFoundException`
|
|
||||||
is thrown. If the database is invalid or corrupt, a
|
|
||||||
`\MaxMind\Db\InvalidDatabaseException` will be thrown.
|
|
||||||
|
|
||||||
See the API documentation for more details.
|
|
||||||
|
|
||||||
### City Example ###
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once 'vendor/autoload.php';
|
|
||||||
use GeoIp2\Database\Reader;
|
|
||||||
|
|
||||||
// This creates the Reader object, which should be reused across
|
|
||||||
// lookups.
|
|
||||||
$reader = new Reader('/usr/local/share/GeoIP/GeoIP2-City.mmdb');
|
|
||||||
|
|
||||||
// Replace "city" with the appropriate method for your database, e.g.,
|
|
||||||
// "country".
|
|
||||||
$record = $reader->city('128.101.101.101');
|
|
||||||
|
|
||||||
print($record->country->isoCode . "\n"); // 'US'
|
|
||||||
print($record->country->name . "\n"); // 'United States'
|
|
||||||
print($record->country->names['zh-CN'] . "\n"); // '美国'
|
|
||||||
|
|
||||||
print($record->mostSpecificSubdivision->name . "\n"); // 'Minnesota'
|
|
||||||
print($record->mostSpecificSubdivision->isoCode . "\n"); // 'MN'
|
|
||||||
|
|
||||||
print($record->city->name . "\n"); // 'Minneapolis'
|
|
||||||
|
|
||||||
print($record->postal->code . "\n"); // '55455'
|
|
||||||
|
|
||||||
print($record->location->latitude . "\n"); // 44.9733
|
|
||||||
print($record->location->longitude . "\n"); // -93.2323
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### Anonymous IP Example ###
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once 'vendor/autoload.php';
|
|
||||||
use GeoIp2\Database\Reader;
|
|
||||||
|
|
||||||
// This creates the Reader object, which should be reused across
|
|
||||||
// lookups.
|
|
||||||
$reader = new Reader('/usr/local/share/GeoIP/GeoIP2-Anonymous-IP.mmdb');
|
|
||||||
|
|
||||||
$record = $reader->anonymousIp('128.101.101.101');
|
|
||||||
|
|
||||||
if ($record->isAnonymous) { print "anon\n"; }
|
|
||||||
print($record->ipAddress . "\n"); // '128.101.101.101'
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### Connection-Type Example ###
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once 'vendor/autoload.php';
|
|
||||||
use GeoIp2\Database\Reader;
|
|
||||||
|
|
||||||
// This creates the Reader object, which should be reused across
|
|
||||||
// lookups.
|
|
||||||
$reader = new Reader('/usr/local/share/GeoIP/GeoIP2-Connection-Type.mmdb');
|
|
||||||
|
|
||||||
$record = $reader->connectionType('128.101.101.101');
|
|
||||||
|
|
||||||
print($record->connectionType . "\n"); // 'Corporate'
|
|
||||||
print($record->ipAddress . "\n"); // '128.101.101.101'
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### Domain Example ###
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once 'vendor/autoload.php';
|
|
||||||
use GeoIp2\Database\Reader;
|
|
||||||
|
|
||||||
// This creates the Reader object, which should be reused across
|
|
||||||
// lookups.
|
|
||||||
$reader = new Reader('/usr/local/share/GeoIP/GeoIP2-Domain.mmdb');
|
|
||||||
|
|
||||||
$record = $reader->domain('128.101.101.101');
|
|
||||||
|
|
||||||
print($record->domain . "\n"); // 'umn.edu'
|
|
||||||
print($record->ipAddress . "\n"); // '128.101.101.101'
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### Enterprise Example ###
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once 'vendor/autoload.php';
|
|
||||||
use GeoIp2\Database\Reader;
|
|
||||||
|
|
||||||
// This creates the Reader object, which should be reused across
|
|
||||||
// lookups.
|
|
||||||
$reader = new Reader('/usr/local/share/GeoIP/GeoIP2-Enterprise.mmdb');
|
|
||||||
|
|
||||||
// Use the ->enterprise method to do a lookup in the Enterprise database
|
|
||||||
$record = $reader->enterprise('128.101.101.101');
|
|
||||||
|
|
||||||
print($record->country->confidence . "\n"); // 99
|
|
||||||
print($record->country->isoCode . "\n"); // 'US'
|
|
||||||
print($record->country->name . "\n"); // 'United States'
|
|
||||||
print($record->country->names['zh-CN'] . "\n"); // '美国'
|
|
||||||
|
|
||||||
print($record->mostSpecificSubdivision->confidence . "\n"); // 77
|
|
||||||
print($record->mostSpecificSubdivision->name . "\n"); // 'Minnesota'
|
|
||||||
print($record->mostSpecificSubdivision->isoCode . "\n"); // 'MN'
|
|
||||||
|
|
||||||
print($record->city->confidence . "\n"); // 60
|
|
||||||
print($record->city->name . "\n"); // 'Minneapolis'
|
|
||||||
|
|
||||||
print($record->postal->code . "\n"); // '55455'
|
|
||||||
|
|
||||||
print($record->location->accuracy_radius . "\n"); // 50
|
|
||||||
print($record->location->latitude . "\n"); // 44.9733
|
|
||||||
print($record->location->longitude . "\n"); // -93.2323
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### ISP Example ###
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once 'vendor/autoload.php';
|
|
||||||
use GeoIp2\Database\Reader;
|
|
||||||
|
|
||||||
// This creates the Reader object, which should be reused across
|
|
||||||
// lookups.
|
|
||||||
$reader = new Reader('/usr/local/share/GeoIP/GeoIP2-ISP.mmdb');
|
|
||||||
|
|
||||||
$record = $reader->isp('128.101.101.101');
|
|
||||||
|
|
||||||
print($record->autonomousSystemNumber . "\n"); // 217
|
|
||||||
print($record->autonomousSystemOrganization . "\n"); // 'University of Minnesota'
|
|
||||||
print($record->isp . "\n"); // 'University of Minnesota'
|
|
||||||
print($record->organization . "\n"); // 'University of Minnesota'
|
|
||||||
|
|
||||||
print($record->ipAddress . "\n"); // '128.101.101.101'
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
## Web Service Client ##
|
|
||||||
|
|
||||||
### Usage ###
|
|
||||||
|
|
||||||
To use this API, you must create a new `\GeoIp2\WebService\Client`
|
|
||||||
object with your `$userId` and `$licenseKey`, then you call the method
|
|
||||||
corresponding to a specific end point, passing it the IP address you want to
|
|
||||||
look up.
|
|
||||||
|
|
||||||
If the request succeeds, the method call will return a model class for the end
|
|
||||||
point you called. This model in turn contains multiple record classes, each of
|
|
||||||
which represents part of the data returned by the web service.
|
|
||||||
|
|
||||||
If there is an error, a structured exception is thrown.
|
|
||||||
|
|
||||||
See the API documentation for more details.
|
|
||||||
|
|
||||||
### Example ###
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once 'vendor/autoload.php';
|
|
||||||
use GeoIp2\WebService\Client;
|
|
||||||
|
|
||||||
// This creates a Client object that can be reused across requests.
|
|
||||||
// Replace "42" with your user ID and "license_key" with your license
|
|
||||||
// key.
|
|
||||||
$client = new Client(42, 'abcdef123456');
|
|
||||||
|
|
||||||
// Replace "city" with the method corresponding to the web service that
|
|
||||||
// you are using, e.g., "country", "insights".
|
|
||||||
$record = $client->city('128.101.101.101');
|
|
||||||
|
|
||||||
print($record->country->isoCode . "\n"); // 'US'
|
|
||||||
print($record->country->name . "\n"); // 'United States'
|
|
||||||
print($record->country->names['zh-CN'] . "\n"); // '美国'
|
|
||||||
|
|
||||||
print($record->mostSpecificSubdivision->name . "\n"); // 'Minnesota'
|
|
||||||
print($record->mostSpecificSubdivision->isoCode . "\n"); // 'MN'
|
|
||||||
|
|
||||||
print($record->city->name . "\n"); // 'Minneapolis'
|
|
||||||
|
|
||||||
print($record->postal->code . "\n"); // '55455'
|
|
||||||
|
|
||||||
print($record->location->latitude . "\n"); // 44.9733
|
|
||||||
print($record->location->longitude . "\n"); // -93.2323
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
## Values to use for Database or Array Keys ##
|
|
||||||
|
|
||||||
**We strongly discourage you from using a value from any `names` property as
|
|
||||||
a key in a database or array.**
|
|
||||||
|
|
||||||
These names may change between releases. Instead we recommend using one of the
|
|
||||||
following:
|
|
||||||
|
|
||||||
* `GeoIp2\Record\City` - `$city->geonameId`
|
|
||||||
* `GeoIp2\Record\Continent` - `$continent->code` or `$continent->geonameId`
|
|
||||||
* `GeoIp2\Record\Country` and `GeoIp2\Record\RepresentedCountry` -
|
|
||||||
`$country->isoCode` or `$country->geonameId`
|
|
||||||
* `GeoIp2\Record\Subdivision` - `$subdivision->isoCode` or `$subdivision->geonameId`
|
|
||||||
|
|
||||||
### What data is returned? ###
|
|
||||||
|
|
||||||
While many of the end points return the same basic records, the attributes
|
|
||||||
which can be populated vary between end points. In addition, while an end
|
|
||||||
point may offer a particular piece of data, MaxMind does not always have every
|
|
||||||
piece of data for any given IP address.
|
|
||||||
|
|
||||||
Because of these factors, it is possible for any end point to return a record
|
|
||||||
where some or all of the attributes are unpopulated.
|
|
||||||
|
|
||||||
See the
|
|
||||||
[GeoIP2 Precision web service docs](http://dev.maxmind.com/geoip/geoip2/web-services)
|
|
||||||
for details on what data each end point may return.
|
|
||||||
|
|
||||||
The only piece of data which is always returned is the `ipAddress`
|
|
||||||
attribute in the `GeoIp2\Record\Traits` record.
|
|
||||||
|
|
||||||
## Integration with GeoNames ##
|
|
||||||
|
|
||||||
[GeoNames](http://www.geonames.org/) offers web services and downloadable
|
|
||||||
databases with data on geographical features around the world, including
|
|
||||||
populated places. They offer both free and paid premium data. Each
|
|
||||||
feature is unique identified by a `geonameId`, which is an integer.
|
|
||||||
|
|
||||||
Many of the records returned by the GeoIP2 web services and databases
|
|
||||||
include a `geonameId` property. This is the ID of a geographical feature
|
|
||||||
(city, region, country, etc.) in the GeoNames database.
|
|
||||||
|
|
||||||
Some of the data that MaxMind provides is also sourced from GeoNames. We
|
|
||||||
source things like place names, ISO codes, and other similar data from
|
|
||||||
the GeoNames premium data set.
|
|
||||||
|
|
||||||
## Reporting data problems ##
|
|
||||||
|
|
||||||
If the problem you find is that an IP address is incorrectly mapped,
|
|
||||||
please
|
|
||||||
[submit your correction to MaxMind](http://www.maxmind.com/en/correction).
|
|
||||||
|
|
||||||
If you find some other sort of mistake, like an incorrect spelling,
|
|
||||||
please check the [GeoNames site](http://www.geonames.org/) first. Once
|
|
||||||
you've searched for a place and found it on the GeoNames map view, there
|
|
||||||
are a number of links you can use to correct data ("move", "edit",
|
|
||||||
"alternate names", etc.). Once the correction is part of the GeoNames
|
|
||||||
data set, it will be automatically incorporated into future MaxMind
|
|
||||||
releases.
|
|
||||||
|
|
||||||
If you are a paying MaxMind customer and you're not sure where to submit
|
|
||||||
a correction, please
|
|
||||||
[contact MaxMind support](http://www.maxmind.com/en/support) for help.
|
|
||||||
|
|
||||||
## Other Support ##
|
|
||||||
|
|
||||||
Please report all issues with this code using the
|
|
||||||
[GitHub issue tracker](https://github.com/maxmind/GeoIP2-php/issues).
|
|
||||||
|
|
||||||
If you are having an issue with a MaxMind service that is not specific
|
|
||||||
to the client API, please see
|
|
||||||
[our support page](http://www.maxmind.com/en/support).
|
|
||||||
|
|
||||||
## Requirements ##
|
|
||||||
|
|
||||||
This code requires PHP 5.3 or greater. Older versions of PHP are not
|
|
||||||
supported. This library works and is tested with HHVM.
|
|
||||||
|
|
||||||
This library also relies on the [MaxMind DB Reader](https://github.com/maxmind/MaxMind-DB-Reader-php).
|
|
||||||
|
|
||||||
If you are using PHP 5.3 with an autoloader besides Composer, you must load
|
|
||||||
`JsonSerializable.php` in the `compat` directory.
|
|
||||||
|
|
||||||
## Contributing ##
|
|
||||||
|
|
||||||
Patches and pull requests are encouraged. All code should follow the PSR-2
|
|
||||||
style guidelines. Please include unit tests whenever possible. You may obtain
|
|
||||||
the test data for the maxmind-db folder by running `git submodule update
|
|
||||||
--init --recursive` or adding `--recursive` to your initial clone, or from
|
|
||||||
https://github.com/maxmind/MaxMind-DB
|
|
||||||
|
|
||||||
## Versioning ##
|
|
||||||
|
|
||||||
The GeoIP2 PHP API uses [Semantic Versioning](http://semver.org/).
|
|
||||||
|
|
||||||
## Copyright and License ##
|
|
||||||
|
|
||||||
This software is Copyright (c) 2013-2016 by MaxMind, Inc.
|
|
||||||
|
|
||||||
This is free software, licensed under the Apache License, Version 2.0.
|
|
||||||
|
|
29
vendor/geoip2/geoip2/composer.json
vendored
29
vendor/geoip2/geoip2/composer.json
vendored
@@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "geoip2/geoip2",
|
|
||||||
"description": "MaxMind GeoIP2 PHP API",
|
|
||||||
"keywords": ["geoip", "geoip2", "geolocation", "ip", "maxmind"],
|
|
||||||
"homepage": "https://github.com/maxmind/GeoIP2-php",
|
|
||||||
"type": "library",
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Gregory J. Oschwald",
|
|
||||||
"email": "goschwald@maxmind.com",
|
|
||||||
"homepage": "http://www.maxmind.com/"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"require": {
|
|
||||||
"maxmind-db/reader": "~1.0",
|
|
||||||
"maxmind/web-service-common": "~0.3",
|
|
||||||
"php": ">=5.3.1"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"phpunit/phpunit": "4.2.*",
|
|
||||||
"squizlabs/php_codesniffer": "2.*"
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"GeoIp2\\": "src"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,27 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace GeoIp2\Compat;
|
|
||||||
|
|
||||||
// @codingStandardsIgnoreFile
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This interface exists to provide backwards compatibility with PHP 5.3
|
|
||||||
*
|
|
||||||
* This should _not_ be used by any third-party code.
|
|
||||||
*
|
|
||||||
* @ignore
|
|
||||||
*/
|
|
||||||
if (interface_exists('JsonSerializable')) {
|
|
||||||
interface JsonSerializable extends \JsonSerializable
|
|
||||||
{
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
interface JsonSerializable
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Returns data that can be serialized by json_encode
|
|
||||||
* @ignore
|
|
||||||
*/
|
|
||||||
public function jsonSerialize();
|
|
||||||
}
|
|
||||||
}
|
|
246
vendor/geoip2/geoip2/src/Database/Reader.php
vendored
246
vendor/geoip2/geoip2/src/Database/Reader.php
vendored
@@ -1,246 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace GeoIp2\Database;
|
|
||||||
|
|
||||||
use GeoIp2\Exception\AddressNotFoundException;
|
|
||||||
use GeoIp2\ProviderInterface;
|
|
||||||
use MaxMind\Db\Reader as DbReader;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Instances of this class provide a reader for the GeoIP2 database format.
|
|
||||||
* IP addresses can be looked up using the database specific methods.
|
|
||||||
*
|
|
||||||
* ## Usage ##
|
|
||||||
*
|
|
||||||
* The basic API for this class is the same for every database. First, you
|
|
||||||
* create a reader object, specifying a file name. You then call the method
|
|
||||||
* corresponding to the specific database, passing it the IP address you want
|
|
||||||
* to look up.
|
|
||||||
*
|
|
||||||
* If the request succeeds, the method call will return a model class for
|
|
||||||
* the method you called. This model in turn contains multiple record classes,
|
|
||||||
* each of which represents part of the data returned by the database. If
|
|
||||||
* the database does not contain the requested information, the attributes
|
|
||||||
* on the record class will have a `null` value.
|
|
||||||
*
|
|
||||||
* If the address is not in the database, an
|
|
||||||
* {@link \GeoIp2\Exception\AddressNotFoundException} exception will be
|
|
||||||
* thrown. If an invalid IP address is passed to one of the methods, a
|
|
||||||
* SPL {@link \InvalidArgumentException} will be thrown. If the database is
|
|
||||||
* corrupt or invalid, a {@link \MaxMind\Db\Reader\InvalidDatabaseException}
|
|
||||||
* will be thrown.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
class Reader implements ProviderInterface
|
|
||||||
{
|
|
||||||
private $dbReader;
|
|
||||||
private $locales;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* @param string $filename The path to the GeoIP2 database file.
|
|
||||||
* @param array $locales List of locale codes to use in name property
|
|
||||||
* from most preferred to least preferred.
|
|
||||||
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
|
|
||||||
* is corrupt or invalid
|
|
||||||
*/
|
|
||||||
public function __construct(
|
|
||||||
$filename,
|
|
||||||
$locales = array('en')
|
|
||||||
) {
|
|
||||||
$this->dbReader = new DbReader($filename);
|
|
||||||
$this->locales = $locales;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method returns a GeoIP2 City model.
|
|
||||||
*
|
|
||||||
* @param string $ipAddress IPv4 or IPv6 address as a string.
|
|
||||||
*
|
|
||||||
* @return \GeoIp2\Model\City
|
|
||||||
*
|
|
||||||
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
|
|
||||||
* not in the database.
|
|
||||||
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
|
|
||||||
* is corrupt or invalid
|
|
||||||
*/
|
|
||||||
public function city($ipAddress)
|
|
||||||
{
|
|
||||||
return $this->modelFor('City', 'City', $ipAddress);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method returns a GeoIP2 Country model.
|
|
||||||
*
|
|
||||||
* @param string $ipAddress IPv4 or IPv6 address as a string.
|
|
||||||
*
|
|
||||||
* @return \GeoIp2\Model\Country
|
|
||||||
*
|
|
||||||
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
|
|
||||||
* not in the database.
|
|
||||||
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
|
|
||||||
* is corrupt or invalid
|
|
||||||
*/
|
|
||||||
public function country($ipAddress)
|
|
||||||
{
|
|
||||||
return $this->modelFor('Country', 'Country', $ipAddress);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method returns a GeoIP2 Anonymous IP model.
|
|
||||||
*
|
|
||||||
* @param string $ipAddress IPv4 or IPv6 address as a string.
|
|
||||||
*
|
|
||||||
* @return \GeoIp2\Model\AnonymousIp
|
|
||||||
*
|
|
||||||
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
|
|
||||||
* not in the database.
|
|
||||||
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
|
|
||||||
* is corrupt or invalid
|
|
||||||
*/
|
|
||||||
public function anonymousIp($ipAddress)
|
|
||||||
{
|
|
||||||
return $this->flatModelFor(
|
|
||||||
'AnonymousIp',
|
|
||||||
'GeoIP2-Anonymous-IP',
|
|
||||||
$ipAddress
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method returns a GeoIP2 Connection Type model.
|
|
||||||
*
|
|
||||||
* @param string $ipAddress IPv4 or IPv6 address as a string.
|
|
||||||
*
|
|
||||||
* @return \GeoIp2\Model\ConnectionType
|
|
||||||
*
|
|
||||||
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
|
|
||||||
* not in the database.
|
|
||||||
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
|
|
||||||
* is corrupt or invalid
|
|
||||||
*/
|
|
||||||
public function connectionType($ipAddress)
|
|
||||||
{
|
|
||||||
return $this->flatModelFor(
|
|
||||||
'ConnectionType',
|
|
||||||
'GeoIP2-Connection-Type',
|
|
||||||
$ipAddress
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method returns a GeoIP2 Domain model.
|
|
||||||
*
|
|
||||||
* @param string $ipAddress IPv4 or IPv6 address as a string.
|
|
||||||
*
|
|
||||||
* @return \GeoIp2\Model\Domain
|
|
||||||
*
|
|
||||||
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
|
|
||||||
* not in the database.
|
|
||||||
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
|
|
||||||
* is corrupt or invalid
|
|
||||||
*/
|
|
||||||
public function domain($ipAddress)
|
|
||||||
{
|
|
||||||
return $this->flatModelFor(
|
|
||||||
'Domain',
|
|
||||||
'GeoIP2-Domain',
|
|
||||||
$ipAddress
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method returns a GeoIP2 Enterprise model.
|
|
||||||
*
|
|
||||||
* @param string $ipAddress IPv4 or IPv6 address as a string.
|
|
||||||
*
|
|
||||||
* @return \GeoIp2\Model\Enterprise
|
|
||||||
*
|
|
||||||
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
|
|
||||||
* not in the database.
|
|
||||||
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
|
|
||||||
* is corrupt or invalid
|
|
||||||
*/
|
|
||||||
public function enterprise($ipAddress)
|
|
||||||
{
|
|
||||||
return $this->modelFor('Enterprise', 'Enterprise', $ipAddress);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method returns a GeoIP2 ISP model.
|
|
||||||
*
|
|
||||||
* @param string $ipAddress IPv4 or IPv6 address as a string.
|
|
||||||
*
|
|
||||||
* @return \GeoIp2\Model\Isp
|
|
||||||
*
|
|
||||||
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
|
|
||||||
* not in the database.
|
|
||||||
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
|
|
||||||
* is corrupt or invalid
|
|
||||||
*/
|
|
||||||
public function isp($ipAddress)
|
|
||||||
{
|
|
||||||
return $this->flatModelFor(
|
|
||||||
'Isp',
|
|
||||||
'GeoIP2-ISP',
|
|
||||||
$ipAddress
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function modelFor($class, $type, $ipAddress)
|
|
||||||
{
|
|
||||||
$record = $this->getRecord($class, $type, $ipAddress);
|
|
||||||
|
|
||||||
$record['traits']['ip_address'] = $ipAddress;
|
|
||||||
$class = "GeoIp2\\Model\\" . $class;
|
|
||||||
|
|
||||||
return new $class($record, $this->locales);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function flatModelFor($class, $type, $ipAddress)
|
|
||||||
{
|
|
||||||
$record = $this->getRecord($class, $type, $ipAddress);
|
|
||||||
|
|
||||||
$record['ip_address'] = $ipAddress;
|
|
||||||
$class = "GeoIp2\\Model\\" . $class;
|
|
||||||
|
|
||||||
return new $class($record);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function getRecord($class, $type, $ipAddress)
|
|
||||||
{
|
|
||||||
if (strpos($this->metadata()->databaseType, $type) === false) {
|
|
||||||
$method = lcfirst($class);
|
|
||||||
throw new \BadMethodCallException(
|
|
||||||
"The $method method cannot be used to open a "
|
|
||||||
. $this->metadata()->databaseType . " database"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
$record = $this->dbReader->get($ipAddress);
|
|
||||||
if ($record === null) {
|
|
||||||
throw new AddressNotFoundException(
|
|
||||||
"The address $ipAddress is not in the database."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return $record;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @throws \InvalidArgumentException if arguments are passed to the method.
|
|
||||||
* @throws \BadMethodCallException if the database has been closed.
|
|
||||||
* @return \MaxMind\Db\Reader\Metadata object for the database.
|
|
||||||
*/
|
|
||||||
public function metadata()
|
|
||||||
{
|
|
||||||
return $this->dbReader->metadata();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Closes the GeoIP2 database and returns the resources to the system.
|
|
||||||
*/
|
|
||||||
public function close()
|
|
||||||
{
|
|
||||||
$this->dbReader->close();
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace GeoIp2\Exception;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class represents a generic error.
|
|
||||||
*/
|
|
||||||
class AddressNotFoundException extends GeoIp2Exception
|
|
||||||
{
|
|
||||||
}
|
|
@@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace GeoIp2\Exception;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class represents a generic error.
|
|
||||||
*/
|
|
||||||
class AuthenticationException extends GeoIp2Exception
|
|
||||||
{
|
|
||||||
}
|
|
@@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace GeoIp2\Exception;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class represents a generic error.
|
|
||||||
*/
|
|
||||||
class GeoIp2Exception extends \Exception
|
|
||||||
{
|
|
||||||
}
|
|
@@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace GeoIp2\Exception;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class represents an HTTP transport error.
|
|
||||||
*/
|
|
||||||
|
|
||||||
class HttpException extends GeoIp2Exception
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The URI queried
|
|
||||||
*/
|
|
||||||
public $uri;
|
|
||||||
|
|
||||||
public function __construct(
|
|
||||||
$message,
|
|
||||||
$httpStatus,
|
|
||||||
$uri,
|
|
||||||
\Exception $previous = null
|
|
||||||
) {
|
|
||||||
$this->uri = $uri;
|
|
||||||
parent::__construct($message, $httpStatus, $previous);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,26 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace GeoIp2\Exception;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class represents an error returned by MaxMind's GeoIP2
|
|
||||||
* web service.
|
|
||||||
*/
|
|
||||||
class InvalidRequestException extends HttpException
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The code returned by the MaxMind web service
|
|
||||||
*/
|
|
||||||
public $error;
|
|
||||||
|
|
||||||
public function __construct(
|
|
||||||
$message,
|
|
||||||
$error,
|
|
||||||
$httpStatus,
|
|
||||||
$uri,
|
|
||||||
\Exception $previous = null
|
|
||||||
) {
|
|
||||||
$this->error = $error;
|
|
||||||
parent::__construct($message, $httpStatus, $uri, $previous);
|
|
||||||
}
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user