Permalink
Browse files

Pass second argument to addChild

  • Loading branch information...
covex-nn authored and greg0ire committed Jun 19, 2018
1 parent 5a2fcb4 commit fe40096aaa89a1bf5b47be922a06366fdf8c77f7
Showing with 2 additions and 3 deletions.
  1. +1 −1 composer.json
  2. +0 −2 src/Admin/CommentAdmin.php
  3. +1 −0 src/Resources/config/admin.xml
View
@@ -23,7 +23,7 @@
],
"require": {
"php": "^5.6 || ^7.0",
"sonata-project/admin-bundle": "^3.31",
"sonata-project/admin-bundle": "^3.35",
"sonata-project/classification-bundle": "^3.6",
"sonata-project/core-bundle": "^3.9",
"sonata-project/datagrid-bundle": "^2.3",
@@ -23,8 +23,6 @@
class CommentAdmin extends AbstractAdmin
{
protected $parentAssociationMapping = 'post';
/**
* @var CommentManagerInterface
*/
@@ -14,6 +14,7 @@
</call>
<call method="addChild">
<argument type="service" id="sonata.news.admin.comment"/>
<argument>post</argument>
</call>
<call method="setTranslationDomain">
<argument>%sonata.news.admin.post.translation_domain%</argument>

0 comments on commit fe40096

Please sign in to comment.