Skip to content

Commit

Permalink
Merge 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Aug 9, 2024
2 parents 7e5e0aa + 873237b commit ad2d5a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Bundle/Command/DebugResourceCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$resources = [];
foreach ($resourceCollection as $resource) {
if ($resource->getUriTemplate()) {
$resources[] = $resource->getUriTemplate();
$resources[] = ($resource->getRoutePrefix() ?? '').$resource->getUriTemplate();
continue;
}

foreach ($resource->getOperations() as $operation) {
if ($operation->getUriTemplate()) {
$resources[] = $operation->getUriTemplate();
$resources[] = ($resource->getRoutePrefix() ?? '').$operation->getUriTemplate();
break;
}
}
Expand Down

0 comments on commit ad2d5a7

Please sign in to comment.