<?xml version="1.0" encoding="UTF-8"?>
<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="ecommit_util.helper" class="Ecommit\UtilBundle\Helper\UtilHelper">
    </service>

    <service id="ecommit_util.twig.util_extension" class="Ecommit\UtilBundle\Twig\UtilExtension">
        <argument type="service" id="ecommit_util.helper" />
        <tag name="twig.extension" />
    </service>
    
    <service id="ecommit_util.cache" class="Ecommit\UtilBundle\Cache\Cache" abstract="true" public="false">
         <argument /> <!-- Options -->
    </service>

    <service id="ecommit_util.clear_entity_manager" class="Ecommit\UtilBundle\Doctrine\ClearEntityManager">
         <argument type="service" id="doctrine" />
    </service>
  </services>
</container>

<?xml version="1.0" encoding="UTF-8"?>
<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="ecommit_util.helper" class="Ecommit\UtilBundle\Helper\UtilHelper">
    </service>

    <service id="ecommit_util.twig.util_extension" class="Ecommit\UtilBundle\Twig\UtilExtension">
        <argument type="service" id="ecommit_util.helper" />
        <tag name="twig.extension" />
    </service>
    
    <service id="ecommit_util.cache" class="Ecommit\UtilBundle\Cache\Cache" abstract="true" public="false">
         <argument /> <!-- Options -->
    </service>

    <service id="ecommit_util.clear_entity_manager" class="Ecommit\UtilBundle\Doctrine\ClearEntityManager">
         <argument type="service" id="doctrine" on-invalid="null" />
    </service>
  </services>
</container>

Fix Doctrine dependency when doctrine isn't used
Fix Doctrine dependency when doctrine isn't used
