|
|
|
|
|
|
|
|
use Lc\ShopBundle\Form\Backend\Order\OrderReductionCreditType; |
|
|
use Lc\ShopBundle\Form\Backend\Order\OrderReductionCreditType; |
|
|
use Lc\ShopBundle\Model\Product; |
|
|
use Lc\ShopBundle\Model\Product; |
|
|
use Lc\ShopBundle\Model\ProductFamily; |
|
|
use Lc\ShopBundle\Model\ProductFamily; |
|
|
|
|
|
use Lc\ShopBundle\Services\Price\OrderShopPriceUtils; |
|
|
use Symfony\Component\HttpFoundation\Session\SessionInterface; |
|
|
use Symfony\Component\HttpFoundation\Session\SessionInterface; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected $orderShopRepo; |
|
|
protected $orderShopRepo; |
|
|
protected $reductionCreditRepo ; |
|
|
protected $reductionCreditRepo ; |
|
|
protected $orderReductionCreditRepo ; |
|
|
protected $orderReductionCreditRepo ; |
|
|
protected $priceUtils; |
|
|
|
|
|
|
|
|
protected $orderShopPriceUtils; |
|
|
protected $productFamilyUtils; |
|
|
protected $productFamilyUtils; |
|
|
protected $documentUtils; |
|
|
protected $documentUtils; |
|
|
protected $session; |
|
|
protected $session; |
|
|
|
|
|
|
|
|
public function __construct(EntityManagerInterface $em, Security $security, UserUtils $userUtils, |
|
|
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) |
|
|
DocumentUtils $documentUtils, SessionInterface $session) |
|
|
{ |
|
|
{ |
|
|
$this->em = $em; |
|
|
$this->em = $em; |
|
|
|
|
|
|
|
|
$this->orderShopRepo = $this->em->getRepository($this->em->getClassMetadata(OrderShopInterface::class)->getName()); |
|
|
$this->orderShopRepo = $this->em->getRepository($this->em->getClassMetadata(OrderShopInterface::class)->getName()); |
|
|
$this->reductionCreditRepo = $this->em->getRepository($this->em->getClassMetadata(ReductionCreditInterface::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->orderReductionCreditRepo = $this->em->getRepository($this->em->getClassMetadata(OrderReductionCreditInterface::class)->getName()); |
|
|
$this->priceUtils = $priceUtils; |
|
|
|
|
|
|
|
|
$this->orderShopPriceUtils = $orderShopPriceUtils; |
|
|
$this->productFamilyUtils = $productFamilyUtils; |
|
|
$this->productFamilyUtils = $productFamilyUtils; |
|
|
$this->documentUtils = $documentUtils; |
|
|
$this->documentUtils = $documentUtils; |
|
|
$this->session = $session; |
|
|
$this->session = $session; |