Skip to content

Commit

Permalink
Add autowire=true to registered config services.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Majer committed Oct 26, 2022
1 parent 6ef1192 commit 42bda1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Majermi4/FriendlyConfig/RegisterConfigService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public static function fromProcessedConfig(string $configClass, array $processed
{
$definition = new Definition($configClass, [$configClass, $processedConfig]);
$definition->setFactory([InitializeConfigObject::class, 'fromProcessedConfig']);
$definition->setAutowired(true);

$containerBuilder->setDefinition($configClass, $definition);

Expand Down

0 comments on commit 42bda1f

Please sign in to comment.