Skip to content

Commit

Permalink
use FQCN and fixed name of child
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark committed Jun 4, 2018
1 parent dfeac5d commit dc98d18
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/reference/child_admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@ its parent:
.. code-block:: yaml
# app/config/services.yml
app.admin.playlist:
class: App\Admin\PlaylistAdmin
App\Admin\PlaylistAdmin:
calls:
- [ addChild, ['@app.admin.video', 'video']]
- [ addChild, ['@App\Admin\VideoAdmin', 'playlist']]
.. code-block:: xml
<!-- app/config/services.xml -->
<service id="app.admin.playlist" class="App\Admin\PlaylistAdmin">
<service id="App\Admin\PlaylistAdmin" class="App\Admin\PlaylistAdmin">
<!-- ... -->
<call method="addChild">
<argument type="service" id="app.admin.video" />
<argument>video</argument>
<argument type="service" id="App\Admin\PlaylistAdmin" />
<argument>playlist</argument>
</call>
</service>
Expand Down

0 comments on commit dc98d18

Please sign in to comment.