create first class form and adapt config for injecting form process in

Smarty
This commit is contained in:
Manuel Raynaud
2013-06-24 10:34:34 +02:00
parent 2edc71e9c3
commit f699686d13
3 changed files with 64 additions and 4 deletions

View File

@@ -21,6 +21,10 @@
-->
</templateDirectives>
<forms>
<form name="thelia.customer.creation" class="Thelia\Form\CustomerCreation"/>
</forms>
<commands>
<command class="Thelia\Command\CacheClear"/>
@@ -72,6 +76,15 @@
</call>
</service>
<service id="smart.plugin.form" class="Thelia\Core\Template\Smarty\Plugins\Form" scope="request">
<tag name="thelia.parser.register_plugin"/>
<argument type="service" id="request"/>
<call method="setFormDefinition">
<argument>%thelia.parser.forms%</argument>
</call>
</service>
<service id="smarty.plugin.translation" class="Thelia\Core\Template\Smarty\Plugins\Translation" >
<tag name="thelia.parser.register_plugin"/>
</service>