Skip to content

Commit 1fcf754

Browse files
authored
Fix syntax error in example
1 parent d2dce7f commit 1fcf754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/service_decoration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,6 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
239239
240240
The generated code will be the following::
241241

242-
$this->services[Foo:class] = new Baz(new Bar(new Foo()));
242+
$this->services[Foo::class] = new Baz(new Bar(new Foo()));
243243

244244
.. _decorator pattern: https://en.wikipedia.org/wiki/Decorator_pattern

0 commit comments

Comments
 (0)