-
-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twig necessary for JSON-Output since 4.6 #1874
Comments
You can fix this by making the service only load the JSON renderer by adding this to services.yaml; nelmio_api_doc.render_docs:
class: Nelmio\ApiDocBundle\Render\RenderOpenApi
arguments:
- "@nelmio_api_doc.generator_locator"
- "@nelmio_api_doc.render_docs.json" The first argument should always be generator_locator, the rest are the renderers you want to make available - the built in ones are |
This regression has been introduced by #1842, a way to fix it can be probably to register all new render services on the same tag and use a service subscriber/locator. |
Hi, thank you for the report! |
@GuilhemN Thank you! |
…piDocBundle to version 4.6 More info: [The service "nelmio_api_doc.render_docs.html.asset" has a dependency on a non-existent service "twig.extension.assets"](nelmio/NelmioApiDocBundle#1876) [Twig necessary for JSON-Output since 4.6](nelmio/NelmioApiDocBundle#1874)
@rwatt-futurenet There is no extension able to load the configuration for "nelmio_api_doc.render_docs" ** The service "nelmio_api_doc.render_docs" has a dependency on a non-existent service "@nelmio_api_doc.generator_locator". Did you mean one of these: "nelmio_api_doc.generator.default", "nelmio_api_doc.generator"? |
Hi,
starting version 4.6, it looks like twig, including symfony//asset is necessary to create the JSON output from the console.
The is the error message that I get (when doing a cache:clear, in this case):
It does work again if I restrict the version to 4.5.
The text was updated successfully, but these errors were encountered: