如何将此文件转换为xml

时间:2014-03-11 12:56:16

标签: xml symfony yaml

如何将此文件转换为xml?

    sonata.admin.builderhomepage:
        class: XXX\AdminBundle\Admin\BuilderHomePageAdmin
        tags:
            - { name: sonata.admin, manager_type: orm, group: "CateOgo", label: "BHCarousel" }
        arguments:
            - ~
            - XXX\FrontendBundle\Entity\BuilderHomePage
            - PixSortableBehaviorBundle:SortableAdmin
        calls:
            - [ setContainer, [ @service_container ] ]
            - [ setPositionService, [@pix_sortable_behavior.position]]

1 个答案:

答案 0 :(得分:0)

谢谢,但这不起作用,我解决了这个问题: -

        <service id="sonata.admin.builderhomepage" class="XXX\AdminBundle\Admin\BuilderHomePageAdmin">
        <tag name="sonata.admin" manager_type="orm" group="CateOgo" label="BHCarousel"/>
        <argument />
        <argument>XXX\FrontendBundle\Entity\BuilderHomePage</argument>
        <argument>PixSortableBehaviorBundle:SortableAdmin</argument>
        <call method="setContainer">
              <argument type="service" id="service_container" />
        </call>
        <call method="setPositionService">
              <argument type="service" id="pix_sortable_behavior.position" />
        </call>
    </service>