Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.1
-
Component/s: None
-
Labels:None
Description
Add the ability to remove the SQL logger after it has been set on the configuration.
public function setSQLLogger(SQLLogger $logger)
could be changed to
public function setSQLLogger(SQLLogger $logger = null)
or another function could be added to disable the logger.
Added pull request for making the parameter default to null: https://github.com/doctrine/dbal/pull/26