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 <?php
/** /**
* Autor: Tobias Matthaiou <developer@tobimat.eu> * @author Tobias Matthaiou <developer@tobimat.eu>
* Date: 2019-08-21 * @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* Time: 07:50
*/ */
namespace tm\oxid\sql\logger;
namespace D3\OxidSqlLogger;
use Monolog; use Monolog;
use Symfony\Component\Console\Formatter\OutputFormatterStyle; use Symfony\Component\Console\Formatter\OutputFormatterStyle;
/** /**
* Class Factory * Class Factory
* @package tm\oxid\sql\logger
*/ */
class LoggerFactory class LoggerFactory
{ {

View File

@ -1,19 +1,17 @@
<?php <?php
/** /**
* Autor: Tobias Matthaiou <developer@tobimat.eu> * @author Tobias Matthaiou <developer@tobimat.eu>
* Date: 2019-08-20 * @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* Time: 21:56
*/ */
namespace tm\oxid\sql\logger; namespace D3\OxidSqlLogger;
use Doctrine\DBAL\Configuration; use Doctrine\DBAL\Configuration;
/** /**
* Class OxidEsalesDatabase * Class OxidEsalesDatabase
* Is a depenction injection Helper Class * Is a depenction injection Helper Class
*
* @package tm\oxid\sql\logger
*/ */
class OxidEsalesDatabase extends \OxidEsales\Eshop\Core\Database\Adapter\Doctrine\Database class OxidEsalesDatabase extends \OxidEsales\Eshop\Core\Database\Adapter\Doctrine\Database
{ {

View File

@ -1,18 +1,17 @@
<?php <?php
/** /**
* Autor: Tobias Matthaiou <developer@tobimat.eu> * @author Tobias Matthaiou <developer@tobimat.eu>
* Date: 2019-08-20 * @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* Time: 21:33
*/ */
namespace tm\oxid\sql\logger; namespace D3\OxidSqlLogger;
use Doctrine\DBAL\Logging\SQLLogger; use Doctrine\DBAL\Logging\SQLLogger;
use Monolog; use Monolog;
/** /**
* Class OxidSQLLogger * Class OxidSQLLogger
* @package tm\oxid\sql\logger
*/ */
class OxidSQLLogger implements SQLLogger class OxidSQLLogger implements SQLLogger
{ {
@ -46,7 +45,7 @@ class OxidSQLLogger implements SQLLogger
'params' => $params, 'params' => $params,
'types' => $types, 'types' => $types,
'calling_file' => $this->file, 'calling_file' => $this->file,
'calling_line' => $this->line, 'calling_line' => $this->line
] ]
); );
} }

View File

@ -1,14 +1,14 @@
<?php <?php
/** /**
* Autor: Tobias Matthaiou <developer@tobimat.eu> * @author Tobias Matthaiou <developer@tobimat.eu>
* Date: 2019-08-20 * @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* Time: 23:11
*/ */
function StartSQLLog($message = null, $file = null, $line = null) { function D3StartSQLLog($message = null, $file = null, $line = null) {
\tm\oxid\sql\logger\OxidEsalesDatabase::enableLogger($message, $file, $line); \D3\OxidSqlLogger\OxidEsalesDatabase::enableLogger($message, $file, $line);
} }
function StopSQLLog() { function D3StopSQLLog() {
\tm\oxid\sql\logger\OxidEsalesDatabase::disableLogger(); \D3\OxidSqlLogger\OxidEsalesDatabase::disableLogger();
} }