From 1fcf7543084de66c0a978b7239df4dde71a36da9 Mon Sep 17 00:00:00 2001 From: Daniel Rotter Date: Sat, 8 Dec 2018 13:54:06 +0100 Subject: [PATCH] Fix syntax error in example --- service_container/service_decoration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_container/service_decoration.rst b/service_container/service_decoration.rst index 974aa331c55..a10aa002934 100644 --- a/service_container/service_decoration.rst +++ b/service_container/service_decoration.rst @@ -239,6 +239,6 @@ the ``decoration_priority`` option. Its value is an integer that defaults to The generated code will be the following:: - $this->services[Foo:class] = new Baz(new Bar(new Foo())); + $this->services[Foo::class] = new Baz(new Bar(new Foo())); .. _decorator pattern: https://en.wikipedia.org/wiki/Decorator_pattern