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