File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11services :
22 acseo_form_js_validation :
3- arguments : ["%acseo_form_js_validation.service%" ]
3+ class : ACSEO\Bundle\FormJsValidationBundle\Service\FormJsValidator
4+ arguments : ["@=service(container.hasParameter('acseo_form_js_validation.service') ? parameter('acseo_form_js_validation.service') : 'acseo_form_jquery_form_validator')"]
45
56 acseo_form_jquery_form_validator :
67 class : ACSEO\Bundle\FormJsValidationBundle\Service\JqueryFormValidator
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace ACSEO \Bundle \FormJsValidationBundle \Service ;
4+
5+ class FormJsValidator
6+ {
7+ private $ formJsValidator ;
8+
9+ public function __construct (FormJsValidatorInterface $ formJsValidator )
10+ {
11+ $ this ->formJsValidator = $ formJsValidator ;
12+ }
13+
14+ public function addJsValidation ($ form , $ validationGroup = "Default " )
15+ {
16+ return $ this ->formJsValidator ->addJsValidation ($ form , $ validationGroup );
17+ }
18+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace ACSEO \Bundle \FormJsValidationBundle \Service ;
4+
5+ interface FormJsValidatorInterface
6+ {
7+ public function addJsValidation ($ form , $ validationGroup = "Default " );
8+ }
Original file line number Diff line number Diff line change 33namespace ACSEO \Bundle \FormJsValidationBundle \Service ;
44
55use ACSEO \Bundle \FormJsValidationBundle \Service \AbstractFormJsValidation ;
6+ use ACSEO \Bundle \FormJsValidationBundle \Service \FormJsValidatorInterface ;
67
7- class FormValidationIo extends AbstractFormJsValidation
8+ class FormValidationIo extends AbstractFormJsValidation implements FormJsValidatorInterface
89{
910 protected function getMapping ()
1011 {
Original file line number Diff line number Diff line change 33namespace ACSEO \Bundle \FormJsValidationBundle \Service ;
44
55use ACSEO \Bundle \FormJsValidationBundle \Service \AbstractFormJsValidation ;
6+ use ACSEO \Bundle \FormJsValidationBundle \Service \FormJsValidatorInterface ;
67
7- class JqueryValidation extends AbstractFormJsValidation
8+ class JqueryFormValidator extends AbstractFormJsValidation implements FormJsValidatorInterface
89{
910 protected function getMapping ()
1011 {
You can’t perform that action at this time.
0 commit comments