You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this section, the following is written: This way, we expose a route that will do… nothing. Note that the controller does not even need to exist.
However, if a non-existing controller is used, Symfony returns the following error:
Operation "_api_/entity_name{._format}_get" is defining an unknown service as controller "App\Entity\NonExistingControllerForOpenApi". Make sure it is properly registered in the dependency injection container in . (which is being imported from "/app/config/routes/api_platform.yaml"). Make sure there is a loader supporting the "api_platform" type.
Creating an empty AbstractController and referencing that fixes the issue.
The text was updated successfully, but these errors were encountered:
In this section, the following is written:
This way, we expose a route that will do… nothing. Note that the controller does not even need to exist.
However, if a non-existing controller is used, Symfony returns the following error:
Creating an empty AbstractController and referencing that fixes the issue.
The text was updated successfully, but these errors were encountered: