<!--
  ~ This file is part of the Alice package.
  ~
  ~ (c) Nelmio <hello@nelm.io>
  ~
  ~ For the full copyright and license information, please view the LICENSE
  ~ file that was distributed with this source code.
  -->

<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="Faker\Generator" public="true"
            alias="nelmio_alice.faker.generator" />

        <service id="nelmio_alice.faker.generator"
                 class="Faker\Generator">
            <factory class="Faker\Factory" method="create" />

            <argument>%nelmio_alice.locale%</argument>

            <call method="seed">
                <argument>%nelmio_alice.seed%</argument>
            </call>

            <!-- Calls to add tagged providers are made in a compiler pass -->
        </service>

        <service id="nelmio_alice.faker.provider.alice" class="Nelmio\Alice\Faker\Provider\AliceProvider">
            <tag name="nelmio_alice.faker.provider" />
        </service>

    </services>

</container>
