Skip to content

Commit

Permalink
Updated docs for children admins (sonata-project#5115)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and pestaa committed Aug 6, 2018
1 parent 45f0271 commit b8f70b0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/reference/child_admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,21 @@ its parent:

.. configuration-block::

.. code-block:: yaml
# app/config/services.yml
App\Admin\PlaylistAdmin:
calls:
- [ addChild, ['@App\Admin\VideoAdmin', 'playlist']]
.. code-block:: xml
<!-- app/config/config.xml -->
<service id="sonata.admin.playlist" class="App\Admin\PlaylistAdmin">
<!-- app/config/services.xml -->
<service id="App\Admin\PlaylistAdmin">
<!-- ... -->
<call method="addChild">
<argument type="service" id="sonata.admin.video" />
<argument type="service" id="App\Admin\PlaylistAdmin" />
<argument>playlist</argument>
</call>
</service>
Expand Down

0 comments on commit b8f70b0

Please sign in to comment.