File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
lib/Doctrine/DBAL/Logging Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ The `Doctrine\DBAL\Driver\SQLSrv\SQLSrvStatement::LAST_INSERT_ID_SQL` constant
42
42
43
43
The constants in ` Doctrine\DBAL\SQLParserUtils ` have been deprecated and will be made private in 3.0.
44
44
45
+ ## Deprecated ` LoggerChain::addLogger ` method
46
+
47
+ The ` Doctrine\DBAL\Logging\LoggerChain::addLogger ` method has been deprecated. Inject list of loggers via constructor instead.
48
+
45
49
# Upgrade to 2.9
46
50
47
51
## Deprecated ` Statement::fetchColumn() ` with an invalid index
Original file line number Diff line number Diff line change @@ -10,9 +10,19 @@ class LoggerChain implements SQLLogger
10
10
/** @var SQLLogger[] */
11
11
private $ loggers = [];
12
12
13
+ /**
14
+ * @param SQLLogger[] $loggers
15
+ */
16
+ public function __construct (array $ loggers = [])
17
+ {
18
+ $ this ->loggers = $ loggers ;
19
+ }
20
+
13
21
/**
14
22
* Adds a logger in the chain.
15
23
*
24
+ * @deprecated Inject list of loggers via constructor instead
25
+ *
16
26
* @return void
17
27
*/
18
28
public function addLogger (SQLLogger $ logger )
You can’t perform that action at this time.
0 commit comments