How to convert a xml symfony services file into yaml -
i'm trying adapt bundle : https://github.com/astepanov/redactorbundle because need make imperavi image upload work not updated anymore...
right i'm trying adapt services file yaml because can't import xml yaml file.
<parameters> <parameter key="redactor.service.class">stp\redactorbundle\model\redactorservice</parameter> </parameters> <services> <service id="redactor.service" class="%redactor.service.class%"> <call method="setcontainer"> <argument type="service" id="service_container" /> </call> </service> <service id="form.type.redactor" class="stp\redactorbundle\form\type\redactortype"> <argument type="service" id="redactor.service" /> <tag name="form.type" alias="redactor" /> </service> </services>
so if tell me how translate yaml, i'd grateful !
i asked method make work got no answer, way if know how make imperavi redactor image upload work feel free tell me !
thanks help.
parameters: redactor.service.class: stp\redactorbundle\model\redactorservice services: redactor.service: class: %redactor.service.class% calls: - [setcontainer, [@service_container]] form.type.redactor: class: stp\redactorbundle\form\type\redactortype arguments: [@redactor.service] tags: - { name: form.type, alias: redactor }
Comments
Post a Comment