| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 41 | public function bootstrap($app) |
||
| 42 | { |
||
| 43 | $app->getUrlManager()->addRules([ |
||
| 44 | [ |
||
| 45 | 'pattern' => $this->id, |
||
| 46 | 'route' => $this->id . '/default/index', |
||
| 47 | 'suffix' => '.xml', |
||
| 48 | ], |
||
| 49 | [ |
||
| 50 | 'pattern' => $this->id . '/<type:[\w-@]+>/<slug:[\w-@]+>-<page:\d+>', |
||
| 51 | 'route' => $this->id . '/default/view', |
||
| 52 | 'suffix' => '.xml', |
||
| 53 | ], |
||
| 54 | [ |
||
| 55 | 'pattern' => $this->id . '/<type:[\w-@]+>/<slug:[\w-@]+>', |
||
| 56 | 'route' => $this->id . '/default/view', |
||
| 57 | 'suffix' => '.xml', |
||
| 58 | ], |
||
| 59 | $this->id => '/site/not-found', |
||
| 60 | $this->id . '/default/' => '/site/not-found', |
||
| 61 | $this->id . '/default/<alias:index|view>/' => '/site/not-found', |
||
| 62 | ], false); |
||
| 63 | } |
||
| 64 | } |
||
| 65 |