[DependencyInjection] added a logger to the Doctrine DBAL extension
This commit is contained in:
parent
bb8b4b74ca
commit
2fa08f4b49
@ -12,6 +12,7 @@
|
||||
<parameter key="doctrine.dbal.wrapper.class">Doctrine\DBAL\Connection</parameter>
|
||||
<parameter key="doctrine.dbal.configuration.class">Doctrine\DBAL\Configuration</parameter>
|
||||
<parameter key="doctrine.dbal.event_manager.class">Doctrine\Common\EventManager</parameter>
|
||||
<parameter key="doctrine.dbal.logger.class">Doctrine\DBAL\Logging\DebugStack</parameter>
|
||||
</parameters>
|
||||
|
||||
<services>
|
||||
@ -28,7 +29,11 @@
|
||||
<argument type="service" id="doctrine.dbal.event_manager" />
|
||||
</service>
|
||||
|
||||
<service id="doctrine.dbal.configuration" class="%doctrine.dbal.configuration.class%" />
|
||||
<service id="doctrine.dbal.configuration" class="%doctrine.dbal.configuration.class%">
|
||||
<call method="setSqlLogger"><argument type="service" id="doctrine.dbal.logger" /></call>
|
||||
</service>
|
||||
|
||||
<service id="doctrine.dbal.logger" class="%doctrine.dbal.logger.class%" />
|
||||
|
||||
<service id="doctrine.dbal.event_manager" class="%doctrine.dbal.event_manager.class%" />
|
||||
</services>
|
||||
|
Reference in New Issue
Block a user