|
|
@@ -12,6 +12,7 @@ use Lc\ShopBundle\Context\UserInterface; |
|
|
|
use Lc\ShopBundle\Form\Backend\UserMerchant\CreditHistoryType; |
|
|
|
use Lc\ShopBundle\Services\CreditUtils; |
|
|
|
use Lc\ShopBundle\Services\Utils; |
|
|
|
use Lc\ShopBundle\Services\UtilsManager; |
|
|
|
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; |
|
|
|
use Symfony\Bridge\Doctrine\Form\Type\EntityType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
|
|
@@ -22,10 +23,10 @@ class UserMerchantController extends AdminController |
|
|
|
{ |
|
|
|
protected $creditUtils; |
|
|
|
|
|
|
|
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, Utils $utils, MerchantUtilsInterface $merchantUtils, MailjetTransport $mailjetTransport, OrderUtilsInterface $orderUtils, TranslatorInterface $translator, CreditUtils $creditUtils) |
|
|
|
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator) |
|
|
|
{ |
|
|
|
parent::__construct($security, $userManager, $em, $utils, $merchantUtils, $mailjetTransport, $orderUtils, $translator); |
|
|
|
$this->creditUtils = $creditUtils; |
|
|
|
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator); |
|
|
|
$this->creditUtils = $utilsManager->getCreditUtils(); |
|
|
|
} |
|
|
|
|
|
|
|
public function addCreditHistoryAction(){ |