| @@ 195-207 (lines=13) @@ | ||
| 192 | /** |
|
| 193 | * @return bool |
|
| 194 | */ |
|
| 195 | public function loadConfig() |
|
| 196 | { |
|
| 197 | /** @var ShopModule $module */ |
|
| 198 | if (null === $module = Yii::$app->getModule('shop')) { |
|
| 199 | return false; |
|
| 200 | } |
|
| 201 | if (empty($module->googleFeedConfig)) { |
|
| 202 | return false; |
|
| 203 | } |
|
| 204 | $this->attrStorage = $module->googleFeedConfig; |
|
| 205 | ||
| 206 | return static::validate(); |
|
| 207 | } |
|
| 208 | } |
|
| @@ 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 | ||