We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2450fb commit c532471Copy full SHA for c532471
lib/Doctrine/DBAL/Logging/LoggerChain.php
@@ -7,12 +7,22 @@
7
*/
8
class LoggerChain implements SQLLogger
9
{
10
- /** @var SQLLogger[] */
+ /** @var iterable<SQLLogger> */
11
private $loggers = [];
12
13
+ /**
14
+ * @param SQLLogger[] $loggers
15
+ */
16
+ public function __construct(iterable $loggers = [])
17
+ {
18
+ $this->loggers = $loggers;
19
+ }
20
+
21
/**
22
* Adds a logger in the chain.
23
*
24
+ * @deprecated Inject list of loggers via constructor instead
25
+ *
26
* @return void
27
28
public function addLogger(SQLLogger $logger)
0 commit comments