You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I'm using symfony 4 and when I try to set the config parameters fom env variables, a throw execption is launched because try to check if the queue name finish with ".fifo"
This block checks the name of the queue at compile time and hence any attempt to use '%env(...)%' in the bundle's config fails as the following regex executes on the actual string '%env(...)%'
// Check queue name ends with ".fifo"
$isQueueNameFIFOReady = preg_match("/$(?<=(\.fifo))/", $values['options']['queue_name']) === 1;
if ($values['options']['fifo'] === true && !$isQueueNameFIFOReady) {
throw new InvalidArgumentException('Queue name must end with ".fifo" on AWS FIFO queues');
}
Would it be possible to remove this check, or would you think of an alternative?
At the moment I think that the best way is remove this check, because in other part of the code this is checked (isQueueFIFO()), but only the option, it's posible to add there the regex expression also to check the name?
Hi!
I'm using symfony 4 and when I try to set the config parameters fom env variables, a throw execption is launched because try to check if the queue name finish with ".fifo"
//qpush.yaml
uecode_qpush:
logging_enabled: true
providers:
opta:
driver: aws
region: '%env(AWS_SQS_REGION)%'
queues:
opta_messaging:
provider: opta
options:
message_timeout: 30
queue_name: '%env(resolve:AWS_SQS_QUEUE_NAME)%'
push_notifications: false
notification_retries: 3
message_delay: 0
message_expiration: 0
fifo: true
content_based_deduplication: false
messages_to_receive: 1
receive_wait_time: 3
//.env
###> aws/aws-sdk-php-symfony ###
AWS_SQS_REGION=us-east-2
AWS_SQS_QUEUE_NAME=testing.fifo
###< aws/aws-sdk-php-symfony ###
The env variables are encripted, then the real name is not set. As you see I trie to use the resolve in the env variable, but not function.
Thank you.
The text was updated successfully, but these errors were encountered: