change namespace

This commit is contained in:
Daniel Seifert 2019-09-19 19:52:54 +02:00
parent ceee2ca96c
commit d8c60ce2c2
4 changed files with 21 additions and 24 deletions

View File

@ -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
{

View File

@ -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
{

View File

@ -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
]
);
}

View File

@ -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();
}