Slack notify
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user