Skip to content

Commit bf21619

Browse files
authored
fix(swagger-ui): export the SwaggerUIBundle object to allow extensions (#4644)
fixes #4643
1 parent a4a22c9 commit bf21619

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bundle/Resources/public/init-swagger-ui.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,8 @@ window.onload = function() {
149149
}, 10000);
150150
});
151151
}
152+
153+
// Make SwaggerUIBundle and data available for some other scripts
154+
window.swaggerUI = ui;
155+
window.swaggerData = data;
152156
};

0 commit comments

Comments
 (0)