Skip to content

Commit

Permalink
Update vendor libs; strip print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
collectiveaccess committed Jan 29, 2021
1 parent 48396dc commit a5d1cbd
Show file tree
Hide file tree
Showing 448 changed files with 1,855 additions and 38,735 deletions.
2 changes: 1 addition & 1 deletion app/lib/ResultContext.php
Expand Up @@ -751,7 +751,7 @@ static public function getResultsUrl($request, $table_name_or_num, $find_type, $
if (!($table_name = Datamodel::getTableName($table_name_or_num))) { return null; }
$o_find_navigation = Configuration::load(((defined('__CA_THEME_DIR__') && (__CA_APP_TYPE__ == 'PAWTUCKET')) ? __CA_THEME_DIR__ : __CA_APP_DIR__).'/conf/find_navigation.conf');
$find_nav = $o_find_navigation->getAssoc($table_name);
print_R($find_nav);

if(is_null($nav = caGetOption($find_type, $find_nav, null))) { return null; }

return caNavUrl($request, trim($nav['module_path']), trim($nav['controller']), trim($nav['action']), []);
Expand Down
1 change: 0 additions & 1 deletion app/models/ca_data_importers.php
Expand Up @@ -2879,7 +2879,6 @@ static public function importDataFromSource($ps_source, $ps_mapping, $pa_options
break;
case 'ca_object_representations':
if ($vn_rel_id = DataMigrationUtils::getObjectRepresentationID($vs_name, $va_element_data['_type'], $vn_locale_id, $va_data_for_rel_table, array('forceUpdate' => true, 'dontCreate' => $vb_dont_create, 'matchOn' => $va_match_on, 'log' => $o_log, 'transaction' => $o_trans, 'importEvent' => $o_event, 'importEventSource' => $vn_row, 'nonPreferredLabels' => $va_nonpreferred_labels, 'matchMediaFilesWithoutExtension' => true))) {
$t_subject->dump();
$t_subject->linkRepresentation($vn_rel_id, true, ['type_id' => trim($va_element_data['_relationship_type'])]);

if ($vs_error = DataMigrationUtils::postError($t_subject, _t("[%1] Could not add related object representation with:", $vs_idno), __CA_DATA_IMPORT_ERROR__, array('dontOutputLevel' => true, 'dontPrint' => true))) {
Expand Down
191 changes: 175 additions & 16 deletions app/models/ca_sets.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions vendor/aws/aws-sdk-php/src/ClientResolver.php
Expand Up @@ -134,7 +134,7 @@ class ClientResolver
'profile' => [
'type' => 'config',
'valid' => ['string'],
'doc' => 'Allows you to specify which profile to use when credentials are created from the AWS credentials file in your HOME directory. This setting overrides the AWS_PROFILE environment variable. Note: Specifying "profile" will cause the "credentials" key to be ignored.',
'doc' => 'Allows you to specify which profile to use when credentials are created from the AWS credentials file in your HOME directory. This setting overrides the AWS_PROFILE environment variable. Note: Specifying "profile" will cause the "credentials" and "use_aws_shared_config_files" keys to be ignored.',
'fn' => [__CLASS__, '_apply_profile'],
],
'credentials' => [
Expand Down Expand Up @@ -221,7 +221,7 @@ class ClientResolver
'use_aws_shared_config_files' => [
'type' => 'value',
'valid' => ['bool'],
'doc' => 'Set to false to disable checking for shared aws config files usually located in \'~/.aws/config\' and \'~/.aws/credentials\'.',
'doc' => 'Set to false to disable checking for shared aws config files usually located in \'~/.aws/config\' and \'~/.aws/credentials\'. This will be ignored if you set the \'profile\' setting.',
'default' => true,
],
];
Expand Down
Expand Up @@ -26,6 +26,8 @@
* @method \GuzzleHttp\Promise\Promise getOpenIdTokenAsync(array $args = [])
* @method \Aws\Result getOpenIdTokenForDeveloperIdentity(array $args = [])
* @method \GuzzleHttp\Promise\Promise getOpenIdTokenForDeveloperIdentityAsync(array $args = [])
* @method \Aws\Result getPrincipalTagAttributeMap(array $args = [])
* @method \GuzzleHttp\Promise\Promise getPrincipalTagAttributeMapAsync(array $args = [])
* @method \Aws\Result listIdentities(array $args = [])
* @method \GuzzleHttp\Promise\Promise listIdentitiesAsync(array $args = [])
* @method \Aws\Result listIdentityPools(array $args = [])
Expand All @@ -38,6 +40,8 @@
* @method \GuzzleHttp\Promise\Promise mergeDeveloperIdentitiesAsync(array $args = [])
* @method \Aws\Result setIdentityPoolRoles(array $args = [])
* @method \GuzzleHttp\Promise\Promise setIdentityPoolRolesAsync(array $args = [])
* @method \Aws\Result setPrincipalTagAttributeMap(array $args = [])
* @method \GuzzleHttp\Promise\Promise setPrincipalTagAttributeMapAsync(array $args = [])
* @method \Aws\Result tagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
* @method \Aws\Result unlinkDeveloperIdentity(array $args = [])
Expand Down
22 changes: 22 additions & 0 deletions vendor/aws/aws-sdk-php/src/Connect/ConnectClient.php
Expand Up @@ -13,6 +13,8 @@
* @method \GuzzleHttp\Promise\Promise associateLambdaFunctionAsync(array $args = [])
* @method \Aws\Result associateLexBot(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateLexBotAsync(array $args = [])
* @method \Aws\Result associateQueueQuickConnects(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateQueueQuickConnectsAsync(array $args = [])
* @method \Aws\Result associateRoutingProfileQueues(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateRoutingProfileQueuesAsync(array $args = [])
* @method \Aws\Result associateSecurityKey(array $args = [])
Expand All @@ -23,6 +25,8 @@
* @method \GuzzleHttp\Promise\Promise createInstanceAsync(array $args = [])
* @method \Aws\Result createIntegrationAssociation(array $args = [])
* @method \GuzzleHttp\Promise\Promise createIntegrationAssociationAsync(array $args = [])
* @method \Aws\Result createQueue(array $args = [])
* @method \GuzzleHttp\Promise\Promise createQueueAsync(array $args = [])
* @method \Aws\Result createQuickConnect(array $args = [])
* @method \GuzzleHttp\Promise\Promise createQuickConnectAsync(array $args = [])
* @method \Aws\Result createRoutingProfile(array $args = [])
Expand All @@ -47,12 +51,16 @@
* @method \GuzzleHttp\Promise\Promise deleteUserHierarchyGroupAsync(array $args = [])
* @method \Aws\Result describeContactFlow(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeContactFlowAsync(array $args = [])
* @method \Aws\Result describeHoursOfOperation(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeHoursOfOperationAsync(array $args = [])
* @method \Aws\Result describeInstance(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeInstanceAsync(array $args = [])
* @method \Aws\Result describeInstanceAttribute(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeInstanceAttributeAsync(array $args = [])
* @method \Aws\Result describeInstanceStorageConfig(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeInstanceStorageConfigAsync(array $args = [])
* @method \Aws\Result describeQueue(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeQueueAsync(array $args = [])
* @method \Aws\Result describeQuickConnect(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeQuickConnectAsync(array $args = [])
* @method \Aws\Result describeRoutingProfile(array $args = [])
Expand All @@ -71,6 +79,8 @@
* @method \GuzzleHttp\Promise\Promise disassociateLambdaFunctionAsync(array $args = [])
* @method \Aws\Result disassociateLexBot(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateLexBotAsync(array $args = [])
* @method \Aws\Result disassociateQueueQuickConnects(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateQueueQuickConnectsAsync(array $args = [])
* @method \Aws\Result disassociateRoutingProfileQueues(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateRoutingProfileQueuesAsync(array $args = [])
* @method \Aws\Result disassociateSecurityKey(array $args = [])
Expand Down Expand Up @@ -105,6 +115,8 @@
* @method \GuzzleHttp\Promise\Promise listPhoneNumbersAsync(array $args = [])
* @method \Aws\Result listPrompts(array $args = [])
* @method \GuzzleHttp\Promise\Promise listPromptsAsync(array $args = [])
* @method \Aws\Result listQueueQuickConnects(array $args = [])
* @method \GuzzleHttp\Promise\Promise listQueueQuickConnectsAsync(array $args = [])
* @method \Aws\Result listQueues(array $args = [])
* @method \GuzzleHttp\Promise\Promise listQueuesAsync(array $args = [])
* @method \Aws\Result listQuickConnects(array $args = [])
Expand Down Expand Up @@ -155,6 +167,16 @@
* @method \GuzzleHttp\Promise\Promise updateInstanceAttributeAsync(array $args = [])
* @method \Aws\Result updateInstanceStorageConfig(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateInstanceStorageConfigAsync(array $args = [])
* @method \Aws\Result updateQueueHoursOfOperation(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateQueueHoursOfOperationAsync(array $args = [])
* @method \Aws\Result updateQueueMaxContacts(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateQueueMaxContactsAsync(array $args = [])
* @method \Aws\Result updateQueueName(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateQueueNameAsync(array $args = [])
* @method \Aws\Result updateQueueOutboundCallerConfig(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateQueueOutboundCallerConfigAsync(array $args = [])
* @method \Aws\Result updateQueueStatus(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateQueueStatusAsync(array $args = [])
* @method \Aws\Result updateQuickConnectConfig(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateQuickConnectConfigAsync(array $args = [])
* @method \Aws\Result updateQuickConnectName(array $args = [])
Expand Down
Expand Up @@ -29,6 +29,8 @@
* @method \GuzzleHttp\Promise\Promise getCostAndUsageAsync(array $args = [])
* @method \Aws\Result getCostAndUsageWithResources(array $args = [])
* @method \GuzzleHttp\Promise\Promise getCostAndUsageWithResourcesAsync(array $args = [])
* @method \Aws\Result getCostCategories(array $args = [])
* @method \GuzzleHttp\Promise\Promise getCostCategoriesAsync(array $args = [])
* @method \Aws\Result getCostForecast(array $args = [])
* @method \GuzzleHttp\Promise\Promise getCostForecastAsync(array $args = [])
* @method \Aws\Result getDimensionValues(array $args = [])
Expand Down
Expand Up @@ -85,6 +85,11 @@ public function __invoke()
private function getEcsUri()
{
$credsUri = getenv(self::ENV_URI);

if ($credsUri === false) {
$credsUri = isset($_SERVER[self::ENV_URI]) ? $_SERVER[self::ENV_URI] : '';
}

return self::SERVER_URI . $credsUri;
}

Expand Down
4 changes: 4 additions & 0 deletions vendor/aws/aws-sdk-php/src/HealthLake/HealthLakeClient.php
Expand Up @@ -11,10 +11,14 @@
* @method \GuzzleHttp\Promise\Promise deleteFHIRDatastoreAsync(array $args = [])
* @method \Aws\Result describeFHIRDatastore(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeFHIRDatastoreAsync(array $args = [])
* @method \Aws\Result describeFHIRExportJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeFHIRExportJobAsync(array $args = [])
* @method \Aws\Result describeFHIRImportJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeFHIRImportJobAsync(array $args = [])
* @method \Aws\Result listFHIRDatastores(array $args = [])
* @method \GuzzleHttp\Promise\Promise listFHIRDatastoresAsync(array $args = [])
* @method \Aws\Result startFHIRExportJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise startFHIRExportJobAsync(array $args = [])
* @method \Aws\Result startFHIRImportJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise startFHIRImportJobAsync(array $args = [])
*/
Expand Down
2 changes: 2 additions & 0 deletions vendor/aws/aws-sdk-php/src/Kafka/KafkaClient.php
Expand Up @@ -53,6 +53,8 @@
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateBrokerCount(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateBrokerCountAsync(array $args = [])
* @method \Aws\Result updateBrokerType(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateBrokerTypeAsync(array $args = [])
* @method \Aws\Result updateBrokerStorage(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateBrokerStorageAsync(array $args = [])
* @method \Aws\Result updateConfiguration(array $args = [])
Expand Down
@@ -0,0 +1,9 @@
<?php
namespace Aws\LexModelsV2\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **Amazon Lex Model Building V2** service.
*/
class LexModelsV2Exception extends AwsException {}
127 changes: 127 additions & 0 deletions vendor/aws/aws-sdk-php/src/LexModelsV2/LexModelsV2Client.php
@@ -0,0 +1,127 @@
<?php
namespace Aws\LexModelsV2;

use Aws\AwsClient;
use Aws\CommandInterface;
use Psr\Http\Message\RequestInterface;

/**
* This client is used to interact with the **Amazon Lex Model Building V2** service.
* @method \Aws\Result buildBotLocale(array $args = [])
* @method \GuzzleHttp\Promise\Promise buildBotLocaleAsync(array $args = [])
* @method \Aws\Result createBot(array $args = [])
* @method \GuzzleHttp\Promise\Promise createBotAsync(array $args = [])
* @method \Aws\Result createBotAlias(array $args = [])
* @method \GuzzleHttp\Promise\Promise createBotAliasAsync(array $args = [])
* @method \Aws\Result createBotLocale(array $args = [])
* @method \GuzzleHttp\Promise\Promise createBotLocaleAsync(array $args = [])
* @method \Aws\Result createBotVersion(array $args = [])
* @method \GuzzleHttp\Promise\Promise createBotVersionAsync(array $args = [])
* @method \Aws\Result createIntent(array $args = [])
* @method \GuzzleHttp\Promise\Promise createIntentAsync(array $args = [])
* @method \Aws\Result createSlot(array $args = [])
* @method \GuzzleHttp\Promise\Promise createSlotAsync(array $args = [])
* @method \Aws\Result createSlotType(array $args = [])
* @method \GuzzleHttp\Promise\Promise createSlotTypeAsync(array $args = [])
* @method \Aws\Result deleteBot(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteBotAsync(array $args = [])
* @method \Aws\Result deleteBotAlias(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteBotAliasAsync(array $args = [])
* @method \Aws\Result deleteBotLocale(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteBotLocaleAsync(array $args = [])
* @method \Aws\Result deleteBotVersion(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteBotVersionAsync(array $args = [])
* @method \Aws\Result deleteIntent(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteIntentAsync(array $args = [])
* @method \Aws\Result deleteSlot(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSlotAsync(array $args = [])
* @method \Aws\Result deleteSlotType(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSlotTypeAsync(array $args = [])
* @method \Aws\Result describeBot(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeBotAsync(array $args = [])
* @method \Aws\Result describeBotAlias(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeBotAliasAsync(array $args = [])
* @method \Aws\Result describeBotLocale(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeBotLocaleAsync(array $args = [])
* @method \Aws\Result describeBotVersion(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeBotVersionAsync(array $args = [])
* @method \Aws\Result describeIntent(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeIntentAsync(array $args = [])
* @method \Aws\Result describeSlot(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSlotAsync(array $args = [])
* @method \Aws\Result describeSlotType(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSlotTypeAsync(array $args = [])
* @method \Aws\Result listBotAliases(array $args = [])
* @method \GuzzleHttp\Promise\Promise listBotAliasesAsync(array $args = [])
* @method \Aws\Result listBotLocales(array $args = [])
* @method \GuzzleHttp\Promise\Promise listBotLocalesAsync(array $args = [])
* @method \Aws\Result listBotVersions(array $args = [])
* @method \GuzzleHttp\Promise\Promise listBotVersionsAsync(array $args = [])
* @method \Aws\Result listBots(array $args = [])
* @method \GuzzleHttp\Promise\Promise listBotsAsync(array $args = [])
* @method \Aws\Result listBuiltInIntents(array $args = [])
* @method \GuzzleHttp\Promise\Promise listBuiltInIntentsAsync(array $args = [])
* @method \Aws\Result listBuiltInSlotTypes(array $args = [])
* @method \GuzzleHttp\Promise\Promise listBuiltInSlotTypesAsync(array $args = [])
* @method \Aws\Result listIntents(array $args = [])
* @method \GuzzleHttp\Promise\Promise listIntentsAsync(array $args = [])
* @method \Aws\Result listSlotTypes(array $args = [])
* @method \GuzzleHttp\Promise\Promise listSlotTypesAsync(array $args = [])
* @method \Aws\Result listSlots(array $args = [])
* @method \GuzzleHttp\Promise\Promise listSlotsAsync(array $args = [])
* @method \Aws\Result listTagsForResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
* @method \Aws\Result tagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
* @method \Aws\Result untagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateBot(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateBotAsync(array $args = [])
* @method \Aws\Result updateBotAlias(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateBotAliasAsync(array $args = [])
* @method \Aws\Result updateBotLocale(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateBotLocaleAsync(array $args = [])
* @method \Aws\Result updateIntent(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateIntentAsync(array $args = [])
* @method \Aws\Result updateSlot(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateSlotAsync(array $args = [])
* @method \Aws\Result updateSlotType(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateSlotTypeAsync(array $args = [])
*/
class LexModelsV2Client extends AwsClient {
public function __construct(array $args)
{
parent::__construct($args);

// Setup middleware.
$stack = $this->getHandlerList();
$stack->appendBuild($this->updateContentType(), 'models.lex.v2.updateContentType');
}

/**
* Creates a middleware that updates the Content-Type header when it is present;
* this is necessary because the service protocol is rest-json which by default
* sets the content-type to 'application/json', but interacting with the service
* requires it to be set to x-amz-json-1.1
*
* @return callable
*/
private function updateContentType()
{
return function (callable $handler) {
return function (
CommandInterface $command,
RequestInterface $request = null
) use ($handler) {
$contentType = $request->getHeader('Content-Type');
if (!empty($contentType) && $contentType[0] == 'application/json') {
return $handler($command, $request->withHeader(
'Content-Type',
'application/x-amz-json-1.1'
));
}
return $handler($command, $request);
};
};
}
}
@@ -0,0 +1,9 @@
<?php
namespace Aws\LexRuntimeV2\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **Amazon Lex Runtime V2** service.
*/
class LexRuntimeV2Exception extends AwsException {}
19 changes: 19 additions & 0 deletions vendor/aws/aws-sdk-php/src/LexRuntimeV2/LexRuntimeV2Client.php
@@ -0,0 +1,19 @@
<?php
namespace Aws\LexRuntimeV2;

use Aws\AwsClient;

/**
* This client is used to interact with the **Amazon Lex Runtime V2** service.
* @method \Aws\Result deleteSession(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSessionAsync(array $args = [])
* @method \Aws\Result getSession(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSessionAsync(array $args = [])
* @method \Aws\Result putSession(array $args = [])
* @method \GuzzleHttp\Promise\Promise putSessionAsync(array $args = [])
* @method \Aws\Result recognizeText(array $args = [])
* @method \GuzzleHttp\Promise\Promise recognizeTextAsync(array $args = [])
* @method \Aws\Result recognizeUtterance(array $args = [])
* @method \GuzzleHttp\Promise\Promise recognizeUtteranceAsync(array $args = [])
*/
class LexRuntimeV2Client extends AwsClient {}

0 comments on commit a5d1cbd

Please sign in to comment.