| @@ 189-201 (lines=13) @@ | ||
| 186 | /** |
|
| 187 | * @return bool |
|
| 188 | */ |
|
| 189 | public function loadConfig() |
|
| 190 | { |
|
| 191 | /** @var ShopModule $module */ |
|
| 192 | if (null === $module = Yii::$app->getModule('shop')) { |
|
| 193 | return false; |
|
| 194 | } |
|
| 195 | if (empty($module->googleFeedConfig)) { |
|
| 196 | return false; |
|
| 197 | } |
|
| 198 | $this->attrStorage = $module->googleFeedConfig; |
|
| 199 | ||
| 200 | return static::validate(); |
|
| 201 | } |
|
| 202 | } |
|
| @@ 220-232 (lines=13) @@ | ||
| 217 | /** |
|
| 218 | * @return bool |
|
| 219 | */ |
|
| 220 | public function loadConfig() |
|
| 221 | { |
|
| 222 | /** @var ShopModule $module */ |
|
| 223 | if (null === $module = Yii::$app->getModule('shop')) { |
|
| 224 | return false; |
|
| 225 | } |
|
| 226 | if (empty($module->ymlConfig)) { |
|
| 227 | return false; |
|
| 228 | } |
|
| 229 | $this->attrStorage = $module->ymlConfig; |
|
| 230 | ||
| 231 | return static::validate(); |
|
| 232 | } |
|
| 233 | } |
|
| 234 | ||