|
|
@@ -15,6 +15,7 @@ use Lc\CaracoleBundle\Model\User\UserMerchantInterface; |
|
|
|
use Lc\CaracoleBundle\Repository\Merchant\MerchantRepository; |
|
|
|
use Lc\CaracoleBundle\Repository\Merchant\MerchantStore; |
|
|
|
use Lc\CaracoleBundle\Repository\User\UserMerchantRepository; |
|
|
|
use Lc\CaracoleBundle\Solver\Merchant\MerchantSolver; |
|
|
|
use Lc\SovBundle\Model\User\UserInterface; |
|
|
|
use Lc\SovBundle\Resolver\UrlResolver; |
|
|
|
use Lc\SovBundle\Solver\Setting\SettingSolver; |
|
|
@@ -37,6 +38,7 @@ class MerchantResolver |
|
|
|
protected MerchantStore $merchantStore; |
|
|
|
protected ParameterBagInterface $parameterBag; |
|
|
|
protected SettingSolver $settingSolver; |
|
|
|
protected MerchantSolver $merchantSolver; |
|
|
|
|
|
|
|
public function __construct( |
|
|
|
EntityManagerInterface $entityManager, |
|
|
@@ -48,7 +50,8 @@ class MerchantResolver |
|
|
|
UrlGeneratorInterface $router, |
|
|
|
MerchantStore $merchantStore, |
|
|
|
ParameterBagInterface $parameterBag, |
|
|
|
SettingSolver $settingSolver |
|
|
|
SettingSolver $settingSolver, |
|
|
|
MerchantSolver $merchantSolver |
|
|
|
) { |
|
|
|
$this->requestStack = $requestStack; |
|
|
|
$this->em = $entityManager; |
|
|
@@ -60,6 +63,7 @@ class MerchantResolver |
|
|
|
$this->router = $router; |
|
|
|
$this->parameterBag = $parameterBag; |
|
|
|
$this->settingSolver = $settingSolver; |
|
|
|
$this->merchantSolver = $merchantSolver; |
|
|
|
} |
|
|
|
|
|
|
|
public function isOutOfMerchant() |