From d8c60ce2c2d6bce869b20e5478db540dbf78b8fb Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Thu, 19 Sep 2019 19:52:54 +0200 Subject: [PATCH] change namespace --- src/LoggerFactory.php | 10 +++++----- src/OxidEsalesDatabase.php | 10 ++++------ src/OxidSQLLogger.php | 11 +++++------ src/functions.php | 14 +++++++------- 4 files changed, 21 insertions(+), 24 deletions(-) diff --git a/src/LoggerFactory.php b/src/LoggerFactory.php index 5f156ea..f36d416 100644 --- a/src/LoggerFactory.php +++ b/src/LoggerFactory.php @@ -1,17 +1,17 @@ - * Date: 2019-08-21 - * Time: 07:50 + * @author Tobias Matthaiou + * @author D3 Data Development - Daniel Seifert */ -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 { diff --git a/src/OxidEsalesDatabase.php b/src/OxidEsalesDatabase.php index 1ed79d0..11028a4 100644 --- a/src/OxidEsalesDatabase.php +++ b/src/OxidEsalesDatabase.php @@ -1,19 +1,17 @@ - * Date: 2019-08-20 - * Time: 21:56 + * @author Tobias Matthaiou + * @author D3 Data Development - Daniel Seifert */ -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 { diff --git a/src/OxidSQLLogger.php b/src/OxidSQLLogger.php index 1b98600..e38f174 100644 --- a/src/OxidSQLLogger.php +++ b/src/OxidSQLLogger.php @@ -1,18 +1,17 @@ - * Date: 2019-08-20 - * Time: 21:33 + * @author Tobias Matthaiou + * @author D3 Data Development - Daniel Seifert */ -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 ] ); } diff --git a/src/functions.php b/src/functions.php index 28e3407..60f91c5 100644 --- a/src/functions.php +++ b/src/functions.php @@ -1,14 +1,14 @@ - * Date: 2019-08-20 - * Time: 23:11 + * @author Tobias Matthaiou + * @author D3 Data Development - Daniel Seifert */ -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(); }