change namespace
Cette révision appartient à :
Parent
ceee2ca96c
révision
d8c60ce2c2
@ -1,17 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Autor: Tobias Matthaiou <developer@tobimat.eu>
|
||||
* Date: 2019-08-21
|
||||
* Time: 07:50
|
||||
* @author Tobias Matthaiou <developer@tobimat.eu>
|
||||
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
|
||||
*/
|
||||
namespace tm\oxid\sql\logger;
|
||||
|
||||
namespace D3\OxidSqlLogger;
|
||||
|
||||
use Monolog;
|
||||
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
|
||||
|
||||
/**
|
||||
* Class Factory
|
||||
* @package tm\oxid\sql\logger
|
||||
*/
|
||||
class LoggerFactory
|
||||
{
|
||||
|
@ -1,19 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Autor: Tobias Matthaiou <developer@tobimat.eu>
|
||||
* Date: 2019-08-20
|
||||
* Time: 21:56
|
||||
* @author Tobias Matthaiou <developer@tobimat.eu>
|
||||
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
|
||||
*/
|
||||
|
||||
namespace tm\oxid\sql\logger;
|
||||
namespace D3\OxidSqlLogger;
|
||||
|
||||
use Doctrine\DBAL\Configuration;
|
||||
|
||||
/**
|
||||
* Class OxidEsalesDatabase
|
||||
* Is a depenction injection Helper Class
|
||||
*
|
||||
* @package tm\oxid\sql\logger
|
||||
*/
|
||||
class OxidEsalesDatabase extends \OxidEsales\Eshop\Core\Database\Adapter\Doctrine\Database
|
||||
{
|
||||
|
@ -1,18 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Autor: Tobias Matthaiou <developer@tobimat.eu>
|
||||
* Date: 2019-08-20
|
||||
* Time: 21:33
|
||||
* @author Tobias Matthaiou <developer@tobimat.eu>
|
||||
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
|
||||
*/
|
||||
|
||||
namespace tm\oxid\sql\logger;
|
||||
namespace D3\OxidSqlLogger;
|
||||
|
||||
use Doctrine\DBAL\Logging\SQLLogger;
|
||||
use Monolog;
|
||||
|
||||
/**
|
||||
* Class OxidSQLLogger
|
||||
* @package tm\oxid\sql\logger
|
||||
*/
|
||||
class OxidSQLLogger implements SQLLogger
|
||||
{
|
||||
@ -46,7 +45,7 @@ class OxidSQLLogger implements SQLLogger
|
||||
'params' => $params,
|
||||
'types' => $types,
|
||||
'calling_file' => $this->file,
|
||||
'calling_line' => $this->line,
|
||||
'calling_line' => $this->line
|
||||
]
|
||||
);
|
||||
}
|
||||
|
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Autor: Tobias Matthaiou <developer@tobimat.eu>
|
||||
* Date: 2019-08-20
|
||||
* Time: 23:11
|
||||
* @author Tobias Matthaiou <developer@tobimat.eu>
|
||||
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
|
||||
*/
|
||||
|
||||
function StartSQLLog($message = null, $file = null, $line = null) {
|
||||
\tm\oxid\sql\logger\OxidEsalesDatabase::enableLogger($message, $file, $line);
|
||||
function D3StartSQLLog($message = null, $file = null, $line = null) {
|
||||
\D3\OxidSqlLogger\OxidEsalesDatabase::enableLogger($message, $file, $line);
|
||||
}
|
||||
|
||||
function StopSQLLog() {
|
||||
\tm\oxid\sql\logger\OxidEsalesDatabase::disableLogger();
|
||||
function D3StopSQLLog() {
|
||||
\D3\OxidSqlLogger\OxidEsalesDatabase::disableLogger();
|
||||
}
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user