<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>
        <service id="Misd\PhoneNumberBundle\Validator\Constraints\PhoneNumberValidator">
            <tag name="validator.constraint_validator" />
            <argument type="service" id="libphonenumber\PhoneNumberUtil" />
            <argument>%misd_phone_number.validator.default_region%</argument>
            <argument>%misd_phone_number.validator.format%</argument>
            <call method="setPropertyAccessor">
                <argument type="service" id="property_accessor" on-invalid="ignore"/>
            </call>
        </service>
    </services>

</container>
