Adding phonenumber validation constraint

This commit is contained in:
2018-08-20 21:33:01 +02:00
parent 900a384597
commit af5375fc38
7 changed files with 330 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
services:
Chill\MainBundle\Phonenumber\PhonenumberHelper:
arguments:
$logger: '@Psr\Log\LoggerInterface'
$config: '%chill_main.phone_helper%'
$cachePool: '@cache.user_data'
Chill\MainBundle\Validation\Validator\ValidPhonenumber:
arguments:
$logger: '@Psr\Log\LoggerInterface'
$phonenumberHelper: '@Chill\MainBundle\Phonenumber\PhonenumberHelper'
tags:
- { name: validator.constraint_validator }