Skip to content

Commit 50cb90d

Browse files
committed
Autowire rules from the rules section by their class name
1 parent c106a9d commit 50cb90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DependencyInjection/RulesExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function loadConfiguration(): void
2222
foreach ($config as $key => $rule) {
2323
$builder->addDefinition($this->prefix((string) $key))
2424
->setFactory($rule)
25-
->setAutowired(false)
25+
->setAutowired($rule)
2626
->addTag(RegistryFactory::RULE_TAG);
2727
}
2828
}

0 commit comments

Comments
 (0)