| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function addRoutes(RouteCollection $routeCollection): RouteCollection |
||
| 35 | { |
||
| 36 | $route = $this->buildRoute('/outlet{categoryPath}', 'ExampleProductSalePage', 'Sale', 'indexAction'); |
||
| 37 | $route = $route->setRequirement('categoryPath', '\/.+'); |
||
| 38 | $route = $route->setDefault('categoryPath', null); |
||
| 39 | |||
| 40 | $routeCollection->add(static::ROUTE_NAME_SALE, $route); |
||
| 41 | |||
| 42 | return $routeCollection; |
||
| 43 | } |
||
| 45 |