浏览代码

Fix argument notation, because it must be a service, not a string

Lucas Oliveira 11 年之前
父节点
当前提交
4cf75a3e7f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Resources/doc/reference/architecture.rst

+ 1 - 1
Resources/doc/reference/architecture.rst

@@ -83,7 +83,7 @@ your ``Admin`` services. This is done using a ``call`` to the matching "setter":
                     - Acme\DemoBundle\Entity\Post
                     - ~
                 calls:
-                    - [ setLabelTranslatorStrategy, [sonata.admin.label.strategy.underscore]]
+                    - [ setLabelTranslatorStrategy, ["@sonata.admin.label.strategy.underscore"]]
 
 Here, we declare the same ``Admin`` service as in the :doc:`getting_started` chapter, but using a
 different label translator strategy, replacing the default one. Notice that