115 lines
6.2 KiB
XML
115 lines
6.2 KiB
XML
<?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="doctrine.dbal.configuration.class">Doctrine\DBAL\Configuration</parameter>
|
|
<parameter key="doctrine.data_collector.class">Doctrine\Bundle\DoctrineBundle\DataCollector\DoctrineDataCollector</parameter>
|
|
<parameter key="doctrine.dbal.connection.event_manager.class">Symfony\Bridge\Doctrine\ContainerAwareEventManager</parameter>
|
|
<parameter key="doctrine.dbal.connection_factory.class">Doctrine\Bundle\DoctrineBundle\ConnectionFactory</parameter>
|
|
<parameter key="doctrine.dbal.events.mysql_session_init.class">Doctrine\DBAL\Event\Listeners\MysqlSessionInit</parameter>
|
|
<parameter key="doctrine.dbal.events.oracle_session_init.class">Doctrine\DBAL\Event\Listeners\OracleSessionInit</parameter>
|
|
<parameter key="doctrine.class">Doctrine\Bundle\DoctrineBundle\Registry</parameter>
|
|
<parameter key="doctrine.entity_managers" type="collection"></parameter>
|
|
<parameter key="doctrine.default_entity_manager"></parameter>
|
|
</parameters>
|
|
|
|
<services>
|
|
<service id="Doctrine\DBAL\Connection" alias="database_connection" public="false" />
|
|
|
|
<service id="data_collector.doctrine" class="%doctrine.data_collector.class%" public="false">
|
|
<tag name="data_collector" template="@Doctrine/Collector/db.html.twig" id="db" priority="250" />
|
|
<argument type="service" id="doctrine" />
|
|
<argument>true</argument>
|
|
<argument type="service" id="doctrine.debug_data_holder" on-invalid="null"/>
|
|
</service>
|
|
|
|
<service id="doctrine.dbal.connection_factory" class="%doctrine.dbal.connection_factory.class%">
|
|
<argument>%doctrine.dbal.connection_factory.types%</argument>
|
|
<argument type="service" id="doctrine.dbal.connection_factory.dsn_parser" />
|
|
</service>
|
|
|
|
<service id="doctrine.dbal.connection_factory.dsn_parser" class="Doctrine\DBAL\Tools\DsnParser">
|
|
<argument type="collection" />
|
|
</service>
|
|
|
|
<service id="doctrine.dbal.connection" class="Doctrine\DBAL\Connection" abstract="true">
|
|
<factory service="doctrine.dbal.connection_factory" method="createConnection" />
|
|
</service>
|
|
|
|
<service id="doctrine.dbal.connection.event_manager" class="%doctrine.dbal.connection.event_manager.class%" public="false" abstract="true">
|
|
<argument type="service" id="service_container" />
|
|
</service>
|
|
|
|
<service id="doctrine.dbal.connection.configuration" class="%doctrine.dbal.configuration.class%" public="false" abstract="true" />
|
|
|
|
<service id="doctrine" class="%doctrine.class%" public="true">
|
|
<argument type="service" id="service_container" />
|
|
<argument>%doctrine.connections%</argument>
|
|
<argument>%doctrine.entity_managers%</argument>
|
|
<argument>%doctrine.default_connection%</argument>
|
|
<argument>%doctrine.default_entity_manager%</argument>
|
|
<tag name="kernel.reset" method="reset" />
|
|
</service>
|
|
<service id="Doctrine\Persistence\ManagerRegistry" alias="doctrine" public="false" />
|
|
<service id="Doctrine\Common\Persistence\ManagerRegistry" alias="doctrine" public="false" />
|
|
|
|
<service id="doctrine.twig.doctrine_extension" class="Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension" public="false">
|
|
<tag name="twig.extension" />
|
|
</service>
|
|
|
|
<service id="doctrine.dbal.schema_asset_filter_manager" class="Doctrine\Bundle\DoctrineBundle\Dbal\SchemaAssetsFilterManager" public="false" abstract="true">
|
|
<!-- schema assets filters -->
|
|
</service>
|
|
|
|
<service id="doctrine.dbal.well_known_schema_asset_filter" class="Doctrine\Bundle\DoctrineBundle\Dbal\BlacklistSchemaAssetFilter" public="false">
|
|
<argument type="collection" />
|
|
</service>
|
|
|
|
<!-- commands -->
|
|
<service id="doctrine.database_create_command" class="Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand">
|
|
<argument type="service" id="doctrine" />
|
|
|
|
<tag name="console.command" command="doctrine:database:create" />
|
|
</service>
|
|
|
|
<service id="doctrine.database_drop_command" class="Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand">
|
|
<argument type="service" id="doctrine" />
|
|
|
|
<tag name="console.command" command="doctrine:database:drop" />
|
|
</service>
|
|
|
|
<service id="doctrine.query_sql_command" class="Doctrine\Bundle\DoctrineBundle\Command\Proxy\RunSqlDoctrineCommand">
|
|
<argument type="service" id="Doctrine\Bundle\DoctrineBundle\Dbal\ManagerRegistryAwareConnectionProvider" on-invalid="null" />
|
|
|
|
<tag name="console.command" command="doctrine:query:sql" />
|
|
</service>
|
|
|
|
<service id="Doctrine\DBAL\Tools\Console\Command\RunSqlCommand">
|
|
<argument type="service" id="Doctrine\Bundle\DoctrineBundle\Dbal\ManagerRegistryAwareConnectionProvider" on-invalid="null" />
|
|
|
|
<tag name="console.command" command="dbal:run-sql" />
|
|
</service>
|
|
|
|
<service id="Doctrine\Bundle\DoctrineBundle\Controller\ProfilerController">
|
|
<argument type="service" id="twig" />
|
|
<argument type="service" id="doctrine" />
|
|
<argument type="service" id="profiler" />
|
|
|
|
<tag name="controller.service_arguments" />
|
|
</service>
|
|
|
|
<service id="doctrine.dbal.idle_connection_listener" class="Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener">
|
|
<argument type="service" id="doctrine.dbal.connection_expiries" />
|
|
<argument type="service" id="service_container" />
|
|
<tag name="kernel.event_subscriber" />
|
|
</service>
|
|
|
|
<service id="doctrine.dbal.default_schema_manager_factory" class="Doctrine\DBAL\Schema\DefaultSchemaManagerFactory" />
|
|
<service id="doctrine.dbal.legacy_schema_manager_factory" class="Doctrine\DBAL\Schema\LegacySchemaManagerFactory" />
|
|
|
|
</services>
|
|
</container>
|