Переглянути джерело

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 />
         <argument>Sonata\NewsBundle\Entity\Post</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,
 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
 Note that you can use both the Bundle:Controller format or a `service name`_ to
 specify what controller to load.
 specify what controller to load.
 
 
+
+
 .. _`Django Project Website`: http://www.djangoproject.com/
 .. _`Django Project Website`: http://www.djangoproject.com/
 .. _`service name`: http://symfony.com/doc/2.0/cookbook/controller/service.html
 .. _`service name`: http://symfony.com/doc/2.0/cookbook/controller/service.html