<!--
  ~ 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="nelmio_alice.generator.caller"
                 alias="nelmio_alice.generator.caller.simple" />

        <service id="nelmio_alice.generator.caller.simple"
                 class="Nelmio\Alice\Generator\Caller\SimpleCaller">
            <argument type="service" id="nelmio_alice.generator.caller.registry" />
            <argument type="service" id="nelmio_alice.generator.resolver.value" />
            <argument type="service" id="nelmio_alice.generator.named_arguments_resolver" />
        </service>

        <service id="nelmio_alice.generator.caller.registry"
                 class="Nelmio\Alice\Generator\Caller\CallProcessorRegistry">
            <!-- Injected via a compiler pass -->
        </service>


        <!-- Chainables -->
        <service id="nelmio_alice.generator.caller.chainable.configurator_method_call"
                 class="Nelmio\Alice\Generator\Caller\Chainable\ConfiguratorMethodCallProcessor">
            <tag name="nelmio_alice.generator.caller.chainable_call_processor" />
        </service>

        <service id="nelmio_alice.generator.caller.chainable.method_call_with_reference"
                 class="Nelmio\Alice\Generator\Caller\Chainable\MethodCallWithReferenceProcessor">
            <tag name="nelmio_alice.generator.caller.chainable_call_processor" />
        </service>

        <service id="nelmio_alice.generator.caller.chainable.optional_method_call"
                 class="Nelmio\Alice\Generator\Caller\Chainable\OptionalMethodCallProcessor">
            <tag name="nelmio_alice.generator.caller.chainable_call_processor" />
        </service>

        <service id="nelmio_alice.generator.caller.chainable.simple_call"
                 class="Nelmio\Alice\Generator\Caller\Chainable\SimpleMethodCallProcessor">
            <tag name="nelmio_alice.generator.caller.chainable_call_processor" />
        </service>

    </services>

</container>
