Skip to content

Commit 7ff2c24

Browse files
committed
-refactoring
1 parent 90f4ca7 commit 7ff2c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Routing/ApiLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function supports(mixed $resource, ?string $type = null): bool
127127
*/
128128
private function loadExternalFiles(RouteCollection $routeCollection): void
129129
{
130-
if ($this->docsEnabled) {
130+
if ($this->docsEnabled || isset($this->formats['jsonld'])) {
131131
$routeCollection->addCollection($this->fileLoader->load('docs.xml'));
132132
}
133133

0 commit comments

Comments
 (0)