Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
www/cache
www/dist
userdata
!userdata/wiki
!userdata/wiki
.git
124 changes: 0 additions & 124 deletions classes/Components/Mailer/Wrapper/LoggerWrapper.php

This file was deleted.

20 changes: 0 additions & 20 deletions classes/Components/Mailer/Wrapper/MemoryLogger.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Application;
use CURLFile;
use Psr\Log\LoggerInterface;
use RuntimeException;
use Xentral\Components\Database\Database;
use Xentral\Core\DependencyInjection\ServiceContainer;
Expand All @@ -22,6 +23,8 @@ class DocuvitaSolutionsApiService
* @var Database
*/
private $db;

private LoggerInterface $logger;
/**
* @var string
*/
Expand Down Expand Up @@ -132,6 +135,7 @@ public function __construct(
$this->app = $app;
$this->container = $app->Container;
$this->db = $this->container->get('Database');
$this->logger = $this->container->get('Logger');

$this->username = $username;
$this->password = $password;
Expand Down Expand Up @@ -234,9 +238,9 @@ public function sendFileAsString($fileName, $content, $uploadGuid)
return json_decode($response);
}

private function log($message, $dump = '')
private function log($message, array $dump = null)
{
$this->app->erp->LogFile($message, $dump, 'docuvitasolutions');
$this->logger->info($message, $dump);
}

/**
Expand All @@ -257,7 +261,7 @@ public function export()
$this->generateVerbindlichkeitTemplates(),
];
if (!empty($this->missingFiles)) {
$this->log("missing files", implode("\n", $this->missingFiles));
$this->log("missing files", $this->missingFiles);
}
for ($i = 0, $count = count($dataObjects); $i < $count; $i++) {
if (count($dataObjects[$i]->getQueryResult()) === 0) {
Expand Down
98 changes: 0 additions & 98 deletions classes/Modules/EtsyApi/Credential/AbstractCredentialData.php

This file was deleted.

7 changes: 0 additions & 7 deletions classes/Modules/EtsyApi/Credential/ClientCredentialData.php

This file was deleted.

16 changes: 0 additions & 16 deletions classes/Modules/EtsyApi/Credential/CredentialDataInterface.php

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions classes/Modules/EtsyApi/Credential/TokenCredentialData.php

This file was deleted.

Loading