Skip to content

Commit

Permalink
Ensures that the service used in the use option is public by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Jan 16, 2024
1 parent 48c50cf commit c26c28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/SatelliteDependencyInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function __invoke(array $config): ContainerBuilder
$definition->setFactory([$service['factory']['class'], $service['factory']['method']]);
}

$definition->setPublic($service['public']);
$definition->setPublic($config['use'] === $identifier ? true : $service['public']);
}
}

Expand Down

0 comments on commit c26c28d

Please sign in to comment.