Skip to content

Commit

Permalink
Autowire rules from the rules section by their class name
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 17, 2021
1 parent c106a9d commit 50cb90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/RulesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function loadConfiguration(): void
foreach ($config as $key => $rule) {
$builder->addDefinition($this->prefix((string) $key))
->setFactory($rule)
->setAutowired(false)
->setAutowired($rule)
->addTag(RegistryFactory::RULE_TAG);
}
}
Expand Down

0 comments on commit 50cb90d

Please sign in to comment.