Skip to content

Commit

Permalink
Updated docs for children admins (#5115)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and greg0ire committed Jun 7, 2018
1 parent d92433e commit 0a010ba
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 0a010ba

Please sign in to comment.