Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function processRoute(RouteInterface $route): RouteInterface |
||
14 | { |
||
15 | /** @var ?BasePath $basePath */ |
||
16 | $basePath = $route->getAnnotation(BasePath::CLASS); |
||
|
|||
17 | |||
18 | if ($basePath) { |
||
19 | $route = $route->withPath( |
||
20 | $basePath->path . $route->getPath() |
||
21 | ); |
||
22 | } |
||
23 | |||
24 | return $route; |
||
25 | } |
||
27 |