Skip to content

Commit 89c7dcd

Browse files
authored
Change factory to class in autowiring exampleFix #[AutowireInline] PHP attribute documentation
1 parent aa8abcf commit 89c7dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/autowiring.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ corresponding arguments::
876876

877877
public function __construct(
878878
#[AutowireInline(
879-
factory: [ScopingHttpClient::class, 'forBaseUri'],
879+
class: [ScopingHttpClient::class, 'forBaseUri'],
880880
arguments: [
881881
'$baseUri' => 'https://api.example.com',
882882
'$defaultOptions' => [

0 commit comments

Comments
 (0)