File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
lib/Doctrine/DBAL/Logging Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ The `Doctrine\DBAL\Driver::getName()` has been removed.
53
53
* Removed ` Table::addUnnamedForeignKeyConstraint() ` and ` Table::addNamedForeignKeyConstraint() ` .
54
54
* Removed ` Table::renameColumn() ` .
55
55
* Removed ` SQLParserUtils::getPlaceholderPositions() ` .
56
+ * Removed ` LoggerChain::addLogger ` .
56
57
* Removed ` AbstractSchemaManager::getFilterSchemaAssetsExpression() ` , ` Configuration::getFilterSchemaAssetsExpression() `
57
58
and ` Configuration::getFilterSchemaAssetsExpression() ` .
58
59
* ` SQLParserUtils::*_TOKEN ` constants made private.
Original file line number Diff line number Diff line change 9
9
*/
10
10
final class LoggerChain implements SQLLogger
11
11
{
12
- /** @var SQLLogger[] */
12
+ /** @var iterable< SQLLogger> */
13
13
private $ loggers = [];
14
14
15
15
/**
16
- * Adds a logger in the chain.
16
+ * @param iterable<SQLLogger> $loggers
17
17
*/
18
- public function addLogger ( SQLLogger $ logger ) : void
18
+ public function __construct ( iterable $ loggers = [])
19
19
{
20
- $ this ->loggers [] = $ logger ;
20
+ $ this ->loggers = $ loggers ;
21
21
}
22
22
23
23
/**
You can’t perform that action at this time.
0 commit comments