Skip to content

Commit 5dff4ee

Browse files
committed
minor #10748 Fix syntax error in decorating services example (danrot)
This PR was merged into the 3.4 branch. Discussion ---------- Fix syntax error in decorating services example There was a small error in the example for decorating services. This won't bother anybody since it is only an example of generated code, but it still looks weird 🙂 #SymfonyConHackday2018 Commits ------- 1fcf754 Fix syntax error in example
2 parents d2dce7f + 1fcf754 commit 5dff4ee

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)