浏览代码

Correctif MerchantResolver

packProduct
Guillaume 3 年前
父节点
当前提交
f2c5e9226a
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      Resolver/MerchantResolver.php

+ 3
- 1
Resolver/MerchantResolver.php 查看文件

@@ -8,6 +8,8 @@ namespace Lc\CaracoleBundle\Resolver;


use Doctrine\ORM\EntityManagerInterface;
use Lc\CaracoleBundle\Definition\MerchantSettingDefinition;
use Lc\CaracoleBundle\Definition\MerchantSettingDefinitionInterface;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\User\UserMerchantInterface;
use Lc\CaracoleBundle\Repository\Merchant\MerchantRepository;
@@ -64,7 +66,7 @@ class MerchantResolver
} // distant
else {
foreach ($merchants as $merchant) {
$url = $merchant->getMerchantConfig('url');
$url = $merchant->getMerchantSettingValue(MerchantSettingDefinition::SETTING_URL);
if ($url && strlen($url) && strpos($url, $_SERVER['HTTP_HOST']) !== false) {
$this->currentMerchant = $merchant;
}

正在加载...
取消
保存