|
|
@@ -22,6 +22,7 @@ use Lc\ShopBundle\Model\Document; |
|
|
|
use Lc\ShopBundle\Form\Backend\Order\OrderReductionCreditType; |
|
|
|
use Lc\ShopBundle\Model\Product; |
|
|
|
use Lc\ShopBundle\Model\ProductFamily; |
|
|
|
use Lc\ShopBundle\Services\Price\OrderShopPriceUtils; |
|
|
|
use Symfony\Component\HttpFoundation\Session\SessionInterface; |
|
|
|
use Symfony\Component\Security\Core\Security; |
|
|
|
|
|
|
@@ -36,13 +37,13 @@ class OrderUtils |
|
|
|
protected $orderShopRepo; |
|
|
|
protected $reductionCreditRepo ; |
|
|
|
protected $orderReductionCreditRepo ; |
|
|
|
protected $priceUtils; |
|
|
|
protected $orderShopPriceUtils; |
|
|
|
protected $productFamilyUtils; |
|
|
|
protected $documentUtils; |
|
|
|
protected $session; |
|
|
|
|
|
|
|
public function __construct(EntityManagerInterface $em, Security $security, UserUtils $userUtils, |
|
|
|
MerchantUtilsInterface $merchantUtils, PriceUtils $priceUtils, ProductFamilyUtilsInterface $productFamilyUtils, |
|
|
|
MerchantUtilsInterface $merchantUtils, OrderShopPriceUtils $orderShopPriceUtils, ProductFamilyUtilsInterface $productFamilyUtils, |
|
|
|
DocumentUtils $documentUtils, SessionInterface $session) |
|
|
|
{ |
|
|
|
$this->em = $em; |
|
|
@@ -52,7 +53,7 @@ class OrderUtils |
|
|
|
$this->orderShopRepo = $this->em->getRepository($this->em->getClassMetadata(OrderShopInterface::class)->getName()); |
|
|
|
$this->reductionCreditRepo = $this->em->getRepository($this->em->getClassMetadata(ReductionCreditInterface::class)->getName()); |
|
|
|
$this->orderReductionCreditRepo = $this->em->getRepository($this->em->getClassMetadata(OrderReductionCreditInterface::class)->getName()); |
|
|
|
$this->priceUtils = $priceUtils; |
|
|
|
$this->orderShopPriceUtils = $orderShopPriceUtils; |
|
|
|
$this->productFamilyUtils = $productFamilyUtils; |
|
|
|
$this->documentUtils = $documentUtils; |
|
|
|
$this->session = $session; |