소스 검색

The docs should default to the easiest configuration to get started with.

Tarjei Huse 13 년 전
부모
커밋
89f1bb15e5
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 2
      Resources/doc/reference/architecture.rst

+ 9 - 2
Resources/doc/reference/architecture.rst

@@ -131,8 +131,13 @@ Examples:
 
         <argument />
         <argument>Sonata\NewsBundle\Entity\Post</argument>
-        <argument>SonataNewsBundle:PostAdmin</argument>
-    </service>
+        <argument>SonataAdminBundle:CRUD</argument>
+</service>
+
+If you want to define your own controller for handling CRUD operations, change the last argument
+in the servicedefinition to::
+
+  <argument>SonataNewsBundle:PostAdmin</argument>
 
 Or if you're using a YML configuration file,
 
@@ -151,5 +156,7 @@ code to write. This base admin uses the routing services to build routes.
 Note that you can use both the Bundle:Controller format or a `service name`_ to
 specify what controller to load.
 
+
+
 .. _`Django Project Website`: http://www.djangoproject.com/
 .. _`service name`: http://symfony.com/doc/2.0/cookbook/controller/service.html