Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Doctrine\Bundle\DoctrineBundle\Dbal\Logging;
use Doctrine\DBAL\Logging\DebugStack;
use function array_shift;
use function debug_backtrace;
use const DEBUG_BACKTRACE_IGNORE_ARGS;
final class BacktraceLogger extends DebugStack
{
/**
* {@inheritdoc}
*/
public function startQuery($sql, ?array $params = null, ?array $types = null): void
{
parent::startQuery($sql, $params, $types);
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
// skip first since it's always the current method
array_shift($backtrace);
$this->queries[$this->currentQuery]['backtrace'] = $backtrace;
}
}