add Logging

This commit is contained in:
Marko 2024-08-02 09:46:16 +02:00
parent b279dd058f
commit b5f1ba6f87
No known key found for this signature in database
20 changed files with 110 additions and 116 deletions

View File

@ -61,7 +61,9 @@ class HiltesExportCommand extends Command
foreach ($orders as $order) { foreach ($orders as $order) {
if ($order->getStatus() > 0) continue; if ($order->getStatus() > 0) {
continue;
}
$tA = $order->getData();#json_decode($order->getData()); $tA = $order->getData();#json_decode($order->getData());
$tA['orderdate'] = "2023-08-30T12:05:24.000Z"; $tA['orderdate'] = "2023-08-30T12:05:24.000Z";

View File

@ -17,6 +17,7 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\HttpKernel\KernelInterface;
use function Sentry\captureCheckIn; use function Sentry\captureCheckIn;
#[AsCommand( #[AsCommand(
@ -35,8 +36,7 @@ class HiltesImportCommand extends Command
StockRepository $stockRepository, StockRepository $stockRepository,
WarehouseRepository $warehouseRepository, WarehouseRepository $warehouseRepository,
LoggerInterface $logger LoggerInterface $logger
) ) {
{
$this->productRepository = $productRepository; $this->productRepository = $productRepository;
$this->stockRepository = $stockRepository; $this->stockRepository = $stockRepository;
$this->warehouseRepository = $warehouseRepository; $this->warehouseRepository = $warehouseRepository;

View File

@ -32,8 +32,7 @@ class JtlExportCommand extends Command
StockRepository $stockRepository, StockRepository $stockRepository,
WarehouseRepository $warehouseRepository, WarehouseRepository $warehouseRepository,
LoggerInterface $logger LoggerInterface $logger
) ) {
{
$this->productRepository = $productRepository; $this->productRepository = $productRepository;
$this->stockRepository = $stockRepository; $this->stockRepository = $stockRepository;
$this->warehouseRepository = $warehouseRepository; $this->warehouseRepository = $warehouseRepository;

View File

@ -9,7 +9,6 @@ use DateTimeInterface;
use Doctrine\DBAL\Types\Types; use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
/* /*
* Bestellungen Status: * Bestellungen Status:
* 1 = Bestellung eingegangen * 1 = Bestellung eingegangen

View File

@ -15,7 +15,6 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\ViewEvent; use Symfony\Component\HttpKernel\Event\ViewEvent;
use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\HttpKernel\KernelEvents;
class SlackNotifySubscriber implements EventSubscriberInterface class SlackNotifySubscriber implements EventSubscriberInterface
{ {
/** /**

View File

@ -2,7 +2,6 @@
namespace App\Helper; namespace App\Helper;
use Exception; use Exception;
class Ftp class Ftp

View File

@ -9,7 +9,6 @@ use Symfony\Component\Filesystem\Exception\IOExceptionInterface;
use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder; use Symfony\Component\Finder\Finder;
class Hiltes class Hiltes
{ {
// init file system // init file system

View File

@ -2,7 +2,6 @@
namespace App\Helper; namespace App\Helper;
use App\Entity\Product; use App\Entity\Product;
use App\Entity\Stock; use App\Entity\Stock;
use App\Entity\Warehouse; use App\Entity\Warehouse;

View File

@ -12,7 +12,6 @@ use Exception;
use League\Csv\Writer; use League\Csv\Writer;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
class Jtl class Jtl
{ {
private $productRepository; private $productRepository;
@ -45,8 +44,8 @@ class Jtl
WarehouseRepository $warehouseRepository, WarehouseRepository $warehouseRepository,
StockRepository $stockRepository, StockRepository $stockRepository,
LoggerInterface $logger, LoggerInterface $logger,
string $rootPath) string $rootPath
{ ) {
$this->productRepository = $productRepository; $this->productRepository = $productRepository;
$this->warehouseRepository = $warehouseRepository; $this->warehouseRepository = $warehouseRepository;
$this->stockRepository = $stockRepository; $this->stockRepository = $stockRepository;

View File

@ -15,7 +15,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\SelfValidatingPasspor
class ApiKeyAuthenticator extends AbstractAuthenticator class ApiKeyAuthenticator extends AbstractAuthenticator
{ {
/** /**
* Called on every request to decide if this authenticator should be * Called on every request to decide if this authenticator should be
* used for the request. Returning `false` will cause this authenticator * used for the request. Returning `false` will cause this authenticator