Skip to content

fix validation of user and password for Nette\DI\Statement#67

Open
krajcikondra wants to merge 1 commit into
Kdyby:masterfrom
krajcikondra:master
Open

fix validation of user and password for Nette\DI\Statement#67
krajcikondra wants to merge 1 commit into
Kdyby:masterfrom
krajcikondra:master

Conversation

@krajcikondra
Copy link
Copy Markdown

@krajcikondra krajcikondra commented May 9, 2018

Hi, my config looks like this:

rabbitmq:

connection:
	host: @envReader::get(RABBIT_MQ_HOST)
	port: @envReader::get(RABBIT_MQ_PORT)
	user: @envReader::get(RABBIT_MQ_USER)
	password: @envReader::get(RABBIT_MQ_PASSWORD)
	vhost: @envReader::get(RABBIT_MQ_VHOST)

In method \Kdyby\RabbitMq\DI\RabbitMqExtension::loadConnections is validation expecting string in user and password.

If we use service envReader for load environmental variable, then to the validation is passed Nette\DI\Statement instead string and application failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant