2 declare(strict_types = 1);
19 use Doctrine\DBAL\Logging\SQLLogger;
20 use Psr\Log\LoggerAwareInterface;
21 use Psr\Log\LoggerAwareTrait;
58 public function startQuery($sql, array $params =
null, array $types =
null)
61 $this->enabled =
false;
62 $this->logger->warning(
'SQL Logging consumed too much memory, aborted. Not all queries have been recorded.');
65 $this->start = microtime(
true);
66 $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 7);
68 array_shift($backtrace);
70 array_shift($backtrace);
72 array_shift($backtrace);
78 'backtrace' => $backtrace