<?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">


    <parameters>
        <parameter key="cnerta.proxy_class">Cnerta\BehindAProxyBundle\Services\ProxyService</parameter>
        <parameter key="cnerta.listener_class">Cnerta\BehindAProxyBundle\Listener\ProxyListener</parameter>
    </parameters>

    <services>
        <service id="cnerta.baproxy" class="%cnerta.proxy_class%">
            <argument type="service" id="service_container" />
        </service>

        <service id="cnerta.proxylistner" class="%cnerta.listener_class%">
            <tag name="kernel.event_subscriber" />
            <argument type="service" id="cnerta.baproxy" />
        </service>
    </services>

</container>

<?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">


    <parameters>
        <parameter key="cnerta.proxy_class">Cnerta\BehindAProxyBundle\Services\ProxyService</parameter>
        <parameter key="cnerta.listener_class">Cnerta\BehindAProxyBundle\Listener\ProxyListener</parameter>
    </parameters>

    <services>
        <service id="cnerta.baproxy" class="%cnerta.proxy_class%">
            <argument type="service" id="service_container" />
        </service>

        <service id="cnerta.baproxy.proxylistner" class="%cnerta.listener_class%">
            <tag name="kernel.event_subscriber" />
            <argument type="service" id="cnerta.baproxy" />
        </service>
    </services>

</container>

Rename a service ID for avoid further collision
Rename a service ID for avoid further collision