Skip to content

Commit

Permalink
Merge pull request #560 from PrestaShopCorp/SC-39_active-multishop
Browse files Browse the repository at this point in the history
Activate multishop support
  • Loading branch information
kseghair authored Oct 14, 2024
2 parents e9c2ef7 + a570a11 commit 46a551a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions controllers/admin/AdminPsfacebookModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use PrestaShop\Module\PrestashopFacebook\Config\Env;
use PrestaShop\Module\PrestashopFacebook\Handler\ErrorHandler\ErrorHandler;
use PrestaShop\Module\PrestashopFacebook\Presenter\ModuleUpgradePresenter;
use PrestaShop\Module\PrestashopFacebook\Provider\MultishopDataProvider;
use PrestaShop\Module\PrestashopFacebook\Repository\ShopRepository;
use PrestaShop\PrestaShop\Core\Addon\Module\ModuleManagerBuilder;
use PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts;
Expand All @@ -50,11 +49,6 @@ class AdminPsfacebookModuleController extends ModuleAdminController
*/
private $moduleUpgradePresenter;

/**
* @var MultishopDataProvider
*/
private $multishopDataProvider;

/**
* @var ShopRepository
*/
Expand All @@ -69,7 +63,6 @@ public function __construct()
$this->configurationAdapter = $this->module->getService(ConfigurationAdapter::class);
$this->env = $this->module->getService(Env::class);
$this->moduleUpgradePresenter = $this->module->getService(ModuleUpgradePresenter::class);
$this->multishopDataProvider = $this->module->getService(MultishopDataProvider::class);
$this->shopRepository = $this->module->getService(ShopRepository::class);
$this->module->getService(ErrorHandler::class);
$this->bootstrap = false;
Expand Down Expand Up @@ -158,7 +151,7 @@ public function initContent()
->present($this->module->name),
'psAccountsToken' => $psAccountsData['psAccountsToken'],
'defaultCategory' => $this->shopRepository->getDefaultCategoryShop(),
'psAccountShopInConflict' => $this->multishopDataProvider->isCurrentShopInConflict($this->context->shop),
'psAccountShopInConflict' => false,
'psFacebookAppId' => $this->env->get('PSX_FACEBOOK_APP_ID'),
'psFacebookFbeUiUrl' => $this->env->get('PSX_FACEBOOK_UI_URL'),
'psFacebookSegmentId' => $this->env->get('PSX_FACEBOOK_SEGMENT_API_KEY'),
Expand Down

0 comments on commit 46a551a

Please sign in to comment.