ソースを参照

Correctif MerchantResolver

master
Guillaume 3年前
コミット
1f074292a1
1個のファイルの変更6行の追加4行の削除
  1. +6
    -4
      Resolver/MerchantResolver.php

+ 6
- 4
Resolver/MerchantResolver.php ファイルの表示

@@ -127,11 +127,13 @@ class MerchantResolver

public function getUrl(SectionInterface $section)
{
if ($this->urlResolver->isServerLocalhost()) {
return $this->router->generate('frontend_home', ['section' => $section->getSlug()], UrlGeneratorInterface::ABSOLUTE_URL);
} else {
return $this->settingSolver->getSettingValue($section->getMerchant(), MerchantSettingDefinition::SETTING_URL);
$url = $this->settingSolver->getSettingValue($section->getMerchant(), MerchantSettingDefinition::SETTING_URL);
if(!$section->getIsDefault()) {
$url .= $section->getSlug();
}

return$url;
}

public function getMerchantUser(UserInterface $user = null)

読み込み中…
キャンセル
保存