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) {
if ($order->getStatus() > 0) continue;
if ($order->getStatus() > 0) {
continue;
}
$tA = $order->getData();#json_decode($order->getData());
$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\Style\SymfonyStyle;
use Symfony\Component\HttpKernel\KernelInterface;
use function Sentry\captureCheckIn;
#[AsCommand(
@ -35,8 +36,7 @@ class HiltesImportCommand extends Command
StockRepository $stockRepository,
WarehouseRepository $warehouseRepository,
LoggerInterface $logger
)
{
) {
$this->productRepository = $productRepository;
$this->stockRepository = $stockRepository;
$this->warehouseRepository = $warehouseRepository;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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