Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribers can have same argument defined explicitly #94

Conversation

sneznaovca
Copy link
Contributor

Solve a issue #93

@sneznaovca sneznaovca changed the title Subscribers can have same argument defined explicitly #93 Subscribers can have same argument defined explicitly Mar 12, 2016
@sneznaovca sneznaovca force-pushed the subscribers-with-same-explicit-arguments branch from 1140c59 to 5458e90 Compare March 12, 2016 11:18
@@ -94,7 +94,7 @@ public function loadConfiguration()

Nette\Utils\Validators::assertField($config, 'subscribers', 'array');
foreach ($config['subscribers'] as $subscriber) {
$def = $builder->addDefinition($this->prefix('subscriber.' . md5(Nette\Utils\Json::encode($subscriber))));
$def = $builder->addDefinition($this->prefix('subscriber.' . md5(Nette\Utils\Json::encode((array) $subscriber))));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch - this should be probably fixed the same way as the exact same issue in kdyby/console

@fprochazka fprochazka closed this in a85bd6f May 1, 2016
@fprochazka
Copy link
Member

@sneznaovca thank you!

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.

2 participants