Slack notify

This commit is contained in:
Marko
2023-06-14 17:02:24 +02:00
parent 0579a62931
commit 30a8e73f21
33 changed files with 1334 additions and 1137 deletions

View File

@@ -3,7 +3,7 @@
namespace App\Command;
use App\Controller\ShopwareController;
use App\Entity\Orders;
use App\Entity\Order;
use App\Helper\Shopware;
use App\Repository\OrdersRepository;
@@ -32,17 +32,17 @@ use Vin\ShopwareSdk\Factory\RepositoryFactory;
)]
class SwGetOrdersCommand extends Command
{
private $ordersRepository;
private $orderRepository;
private $logger;
private $sw;
private $orderData;
public function __construct(OrdersRepository $ordersRepository, LoggerInterface $logger)
public function __construct(OrdersRepository $orderRepository, LoggerInterface $logger)
{
$this->ordersRepository = $ordersRepository;
$this->orderRepository = $orderRepository;
$this->logger = $logger;
$this->sw = new Shopware();
$this->sw = new Shopware($logger);
parent::__construct();
}
@@ -82,7 +82,7 @@ class SwGetOrdersCommand extends Command
*/
private function getOrders():array
{
return $this->ordersRepository->findAll();
return $this->orderRepository->findAll();
}
/**
@@ -121,4 +121,4 @@ class SwGetOrdersCommand extends Command
$orderData->setStatus = 1;
$this->ordersRepository->add($orderData, true);
}
}
}