<?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="flagbit_currency.class">Flagbit\Bundle\CurrencyBundle\Service\Currency</parameter>
        <parameter key="flagbit_currency.twig.class">Flagbit\Bundle\CurrencyBundle\Twig\FlagbitCurrencyExtension</parameter>
    </parameters>

    <services>
        <service id="flagbit_currency.intl_bundle" class="Symfony\Component\Intl\ResourceBundle\CurrencyBundleInterface"
                 factory-class="Symfony\Component\Intl\Intl" factory-method="getCurrencyBundle" public="false"/>

        <service id="flagbit_currency" class="%flagbit_currency.class%">
            <argument type="service" id="flagbit_currency.intl_bundle"/>
        </service>

        <service id="flagbit_currency.twig" class="%flagbit_currency.twig.class%">
            <argument type="service" id="flagbit_currency"/>
            <tag name="twig.extension"/>
        </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="flagbit_currency.class">Flagbit\Bundle\CurrencyBundle\Service\Currency</parameter>
        <parameter key="flagbit_currency.twig.class">Flagbit\Bundle\CurrencyBundle\Twig\FlagbitCurrencyExtension</parameter>
    </parameters>

    <services>
        <service id="flagbit_currency.intl_bundle" class="Symfony\Component\Intl\ResourceBundle\CurrencyBundleInterface">
            <factory class="Symfony\Component\Intl\Intl" method="getCurrencyBundle"/>
        </service>

        <service id="flagbit_currency" class="%flagbit_currency.class%">
            <argument type="service" id="flagbit_currency.intl_bundle"/>
        </service>

        <service id="flagbit_currency.twig" class="%flagbit_currency.twig.class%">
            <argument type="service" id="flagbit_currency"/>
            <tag name="twig.extension"/>
        </service>
    </services>

</container>

Change service definition to Symfony version >= 2.6
Change service definition to Symfony version >= 2.6
