| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function addRoutes(RouteCollection $routeCollection): RouteCollection |
||
| 20 | { |
||
| 21 | $route = $this->buildRoute('/outlet{categoryPath}', 'ExampleProductSalePage', 'Sale', 'indexAction'); |
||
| 22 | $route = $route->setRequirement('categoryPath', '\/.+'); |
||
| 23 | $route = $route->setDefault('categoryPath', null); |
||
| 24 | |||
| 25 | $routeCollection->add(static::ROUTE_NAME_SALE, $route); |
||
| 26 | |||
| 27 | return $routeCollection; |
||
| 28 | } |
||
| 30 |