Page MenuHomeWickedGov Phorge

LoggerChain.php
No OneTemporary

Size
984 B
Referenced Files
None
Subscribers
None

LoggerChain.php

<?php
namespace Doctrine\DBAL\Logging;
use Doctrine\Deprecations\Deprecation;
/**
* Chains multiple SQLLogger.
*
* @deprecated
*/
class LoggerChain implements SQLLogger
{
/** @var iterable<SQLLogger> */
private iterable $loggers;
/** @param iterable<SQLLogger> $loggers */
public function __construct(iterable $loggers = [])
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/4967',
'LoggerChain is deprecated',
);
$this->loggers = $loggers;
}
/**
* {@inheritDoc}
*/
public function startQuery($sql, ?array $params = null, ?array $types = null)
{
foreach ($this->loggers as $logger) {
$logger->startQuery($sql, $params, $types);
}
}
/**
* {@inheritDoc}
*/
public function stopQuery()
{
foreach ($this->loggers as $logger) {
$logger->stopQuery();
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 02:25 (4 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ec/31/338755ad34f46aa7b019b09d3948
Default Alt Text
LoggerChain.php (984 B)

Event Timeline