I'm trying to adapt this bundle : https://github.com/AStepanov/RedactorBundle Because i need to make the imperavi image upload work but it is not updated anymore...
我正在尝试调整这个包:https://github.com/AStepanov/RedactorBundle,因为我需要让imperavi图像上传工作,但是它不再更新了……
Right now i'm trying to adapt the services file into yaml because i can't import the xml into my yaml file.
现在我正在尝试将服务文件调整为yaml,因为我无法将xml导入到yaml文件中。
<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 anyone could tell me how to translate this into yaml, i'd be very grateful !
所以如果有人能告诉我如何翻译成yaml,我将非常感激!
I actually already asked for any method to make it work but got no answer, so by the way if you know how to make the imperavi redactor image upload work feel free to tell me !
实际上我已经要求过任何方法来让它工作,但是没有得到任何答案,所以顺便说一下,如果你知道如何让imperavi redactor图像上传工作,请随时告诉我!
Thanks for help.
谢谢你的帮助。
1 个解决方案
#1
5
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 }
#1
5
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 }