1234567891011121314151617181920212223242526272829303132333435 |
- <?xml version="1.0" ?>
- <container xmlns="http://www.symfony-project.org/schema/dic/services"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
- <parameters>
- <parameter key="doctrine.orm.entity_manager.class">Doctrine\ORM\EntityManager</parameter>
- <parameter key="doctrine.orm.metadata_driver_impl.class">Doctrine\ORM\Mapping\Driver\XmlDriver</parameter>
- <parameter key="doctrine.orm.cache.class">Doctrine\Common\Cache\ArrayCache</parameter>
- </parameters>
- <services>
- <service id="doctrine.orm.entity_manager" class="%doctrine.orm.entity_manager.class%" constructor="create">
- <argument type="service" id="doctrine.dbal.connection" />
- <argument type="service" id="doctrine.orm.configuration" />
- </service>
- <service id="doctrine.orm.metadata_driver_impl" class="%doctrine.orm.metadata_driver_impl.class%">
- <argument>%doctrine.orm.metadata_driver_impl.dirs%</argument>
- </service>
- <service id="doctrine.orm.cache" class="%doctrine.orm.cache.class%" />
- <service id="doctrine.orm.configuration" class="Doctrine\ORM\Configuration">
- <call method="setMetadataCacheImpl"><argument type="service" id="doctrine.orm.cache" /></call>
- <call method="setQueryCacheImpl"><argument type="service" id="doctrine.orm.cache" /></call>
- <call method="setResultCacheImpl"><argument type="service" id="doctrine.orm.cache" /></call>
- <call method="setMetadataDriverImpl"><argument type="service" id="doctrine.orm.metadata_driver_impl" /></call>
- <call method="setProxyDir"><argument>%kernel.cache_dir%/doctrine/Proxies</argument></call>
- <call method="setProxyNamespace"><argument>Proxies</argument></call>
- <call method="setAutoGenerateProxyClasses"><argument>true</argument></call>
- </service>
- </services>
- </container>
|