overblog / GraphQLBundle

This bundle provides tools to build a complete GraphQL API server in your Symfony App.
MIT License
783 stars 221 forks source link

Do not inject the authorization checker service in GraphQL types #1156

Closed hunhejj closed 7 months ago

hunhejj commented 8 months ago

In Symfony 6+ security.authorization-checker is not a public service anymore, hence the previous example won't work.

However the expression language supports using isGranted directly hence I propose to update the documentation.

hunhejj commented 8 months ago

Addresses https://github.com/overblog/GraphQLBundle/issues/1154