| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 73 | public function getSitemap() { |
||
| 74 | if (!empty(\yii::$app->components['sitemap'])) { |
||
| 75 | $result = \yii::$app->get('sitemap'); |
||
| 76 | } else if (!($result = $this->_sitemap)) { |
||
| 77 | throw new Exception('Component for sitemap module is required. Define it via application components ' |
||
| 78 | . 'or module components'); |
||
| 79 | } |
||
| 80 | |||
| 81 | $result->module = $this; |
||
| 82 | |||
| 83 | return $result; |
||
| 84 | } |
||
| 85 | } |
||
| 86 |