Skip to content

Commit

Permalink
Fix routing name and sorting of routes and schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Apr 8, 2024
1 parent 14b2b22 commit 9ee1bc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/pimcore/routing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_dcos:
api_docs:
path: /studio/api/docs
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
Expand Down
2 changes: 2 additions & 0 deletions src/DependencyInjection/PimcoreStudioApiExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ private function getPaths(): array
$paths = [...$paths, ...Yaml::parseFile($file->getRealPath())];
}

ksort($paths);
return $paths;
}

Expand All @@ -116,6 +117,7 @@ private function getSchemas(): array
$schemas = [...$schemas, ...Yaml::parseFile($file->getRealPath())];
}

ksort($schemas);
return $schemas;
}
}

0 comments on commit 9ee1bc3

Please sign in to comment.